From c632073018cf7909d0081296355f412bd89215cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=AE=B6=E8=BE=89?= <35832931+ColinCollins@users.noreply.github.com> Date: Wed, 27 Jun 2018 12:55:21 +0800 Subject: [PATCH] modfity the creator.t.ds (#2912) --- cocos2d/core/platform/CCMacro.js | 1 + cocos2d/core/value-types/CCVec2.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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