Merge pull request #2538 from jareguo/master

minor update
This commit is contained in:
Jare Guo
2018-04-15 14:01:32 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -1857,6 +1857,7 @@ Invalid type of %s.%s
### 5509
<!-- DEPRECATED -->
The 'type' attribute of '%s.%s' must be child class of cc.Asset, otherwise you should use 'url: %s' instead
### 5510
+1 -2
View File
@@ -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) {