diff --git a/cocos2d/core/platform/CCMacro.js b/cocos2d/core/platform/CCMacro.js index 3c0884f136..94377a9bfe 100644 --- a/cocos2d/core/platform/CCMacro.js +++ b/cocos2d/core/platform/CCMacro.js @@ -2003,6 +2003,7 @@ cc.defineGetterSetter(cc.macro, "BLEND_SRC", function (){ * @param {Number} a number A * @param {Number} b number B * @param {Number} r ratio between 0 and 1 + * @return {Number} * @example {@link cocos2d/core/platform/CCMacro/lerp.js} */ cc.lerp = function (a, b, r) { diff --git a/cocos2d/core/value-types/CCVec2.js b/cocos2d/core/value-types/CCVec2.js index 481ea025b1..6dacb7fc2f 100644 --- a/cocos2d/core/value-types/CCVec2.js +++ b/cocos2d/core/value-types/CCVec2.js @@ -285,7 +285,7 @@ proto.scale = function (vector, out) { * !#en Divides by a number. If you want to save result to another vector, use div() instead. * !#zh 向量除法。如果你想结果保存到另一个向量,可使用 div() 代替。 * @method divSelf - * @param {Vec2} vector + * @param {Number} divisor * @return {Vec2} returns this * @chainable * @example @@ -302,7 +302,7 @@ proto.divSelf = function (num) { * !#en Divides by a number, and returns the new result. * !#zh 向量除法,并返回新的结果。 * @method div - * @param {Vec2} vector + * @param {Number} divisor * @param {Vec2} [out] - optional, the receiving vector * @return {Vec2} the result * @example