From c2368128aac4540980398a59238bbe042c1b10a2 Mon Sep 17 00:00:00 2001 From: Jare Guo Date: Fri, 13 Apr 2018 23:10:42 +0800 Subject: [PATCH] minor update --- EngineErrorMap.md | 1 + cocos2d/core/platform/CCClassDecorator.js | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/EngineErrorMap.md b/EngineErrorMap.md index 9dcbf9e2ab..f8e5e2ce0e 100644 --- a/EngineErrorMap.md +++ b/EngineErrorMap.md @@ -1857,6 +1857,7 @@ Invalid type of %s.%s ### 5509 + The 'type' attribute of '%s.%s' must be child class of cc.Asset, otherwise you should use 'url: %s' instead ### 5510 diff --git a/cocos2d/core/platform/CCClassDecorator.js b/cocos2d/core/platform/CCClassDecorator.js index d6dfd396e9..aeaef2eb44 100644 --- a/cocos2d/core/platform/CCClassDecorator.js +++ b/cocos2d/core/platform/CCClassDecorator.js @@ -318,7 +318,6 @@ var ccclass = checkCtorArgument(function (ctor, name) { * @method property * @param {Object} [options] - an object with some property attributes * @param {Any} [options.type] - * @param {Function} [options.url] * @param {Boolean|Function} [options.visible] * @param {String} [options.displayName] * @param {String} [options.tooltip] @@ -417,7 +416,7 @@ var ccclass = checkCtorArgument(function (ctor, name) { * } * }); * @typescript - * property(options?: {type?: any; url?: typeof cc.RawAsset; visible?: boolean|(() => boolean); displayName?: string; tooltip?: string; multiline?: boolean; readonly?: boolean; min?: number; max?: number; step?: number; range?: number[]; slide?: boolean; serializable?: boolean; formerlySerializedAs?: string; editorOnly?: boolean; override?: boolean; animatable?: boolean} | any[]|Function|cc.ValueType|number|string|boolean): Function + * property(options?: {type?: any; visible?: boolean|(() => boolean); displayName?: string; tooltip?: string; multiline?: boolean; readonly?: boolean; min?: number; max?: number; step?: number; range?: number[]; slide?: boolean; serializable?: boolean; formerlySerializedAs?: string; editorOnly?: boolean; override?: boolean; animatable?: boolean} | any[]|Function|cc.ValueType|number|string|boolean): Function * property(_target: Object, _key: any, _desc?: any): void */ function property (ctorProtoOrOptions, propName, desc) {