From 8ca93a233a9308d087728c9430b643ce3c81b468 Mon Sep 17 00:00:00 2001 From: Nan Wang Date: Wed, 3 Feb 2016 20:15:18 +0800 Subject: [PATCH 1/2] fixed readonly tag. --- CCDebugger.js | 1 - cocos2d/animation/animation-state.js | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CCDebugger.js b/CCDebugger.js index 4d266920e6..8ff56bb3b4 100644 --- a/CCDebugger.js +++ b/CCDebugger.js @@ -329,7 +329,6 @@ cc._formatString = function (arg) { /** * Enum for debug modes. * @enum DebugMode - * @readOnly */ cc.DebugMode = cc.Enum({ /** diff --git a/cocos2d/animation/animation-state.js b/cocos2d/animation/animation-state.js index a4a2b86581..4470a136cf 100644 --- a/cocos2d/animation/animation-state.js +++ b/cocos2d/animation/animation-state.js @@ -9,8 +9,13 @@ var AnimationNode = require('./types').AnimationNode; * @class AnimationState * @extends AnimationNode * @constructor + */ + +/** + * @method AnimationState * @param {AnimationClip} clip * @param {String} [name] + * @return AnimationState */ function AnimationState (clip, name) { AnimationNode.call(this, null, null, { @@ -28,7 +33,7 @@ var state = AnimationState.prototype; * The clip that is being played by this animation state. * @property clip * @type {AnimationClip} - * @readOnly + * @final */ JS.get(state, 'clip', function () { return this._clip; From 95e28d3bb82f0b2b4d26399868c38e7afb0d59ee Mon Sep 17 00:00:00 2001 From: Nan Wang Date: Thu, 4 Feb 2016 13:57:13 +0800 Subject: [PATCH 2/2] fixed return type. --- cocos2d/actions3d/CCActionGrid3D.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2d/actions3d/CCActionGrid3D.js b/cocos2d/actions3d/CCActionGrid3D.js index ca72abc6b1..6a57691dfb 100644 --- a/cocos2d/actions3d/CCActionGrid3D.js +++ b/cocos2d/actions3d/CCActionGrid3D.js @@ -638,7 +638,7 @@ cc.Ripple3D = cc.Grid3DAction.extend(/** @lends cc.Ripple3D# */{ /** * get Amplitude rate - * @return {*} + * @return {Number} */ getAmplitudeRate:function () { return this._amplitudeRate;