From e5f657503210857d16ec36b9184f9ca6b3cc5025 Mon Sep 17 00:00:00 2001 From: minggo Date: Fri, 29 Jan 2016 15:24:20 +0800 Subject: [PATCH] fix some comment error --- cocos2d/core/CCActionManager.js | 2 +- cocos2d/core/CCScheduler.js | 24 +----------------------- 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/cocos2d/core/CCActionManager.js b/cocos2d/core/CCActionManager.js index fa7ab5134a..f99c4738a2 100644 --- a/cocos2d/core/CCActionManager.js +++ b/cocos2d/core/CCActionManager.js @@ -93,7 +93,7 @@ cc.ActionManager = cc._Class.extend(/** @lends cc.ActionManager# */{ * When the target is paused, the queued actions won't be 'ticked'. * @method addAction * @param {cc.Action} action - * @param {_ccsg.Node} target + * @param {cc.Node} target * @param {Boolean} paused */ addAction:function (action, target, paused) { diff --git a/cocos2d/core/CCScheduler.js b/cocos2d/core/CCScheduler.js index 617f110805..44ce5b88d4 100644 --- a/cocos2d/core/CCScheduler.js +++ b/cocos2d/core/CCScheduler.js @@ -100,11 +100,7 @@ cc.HashTimerEntry = cc.hashSelectorEntry = function (timers, target, timerIndex, _t.hh = hh; }; -/** - * Light weight timer - * @class Timer - * @extends _Class - */ + cc.Timer = cc._Class.extend(/** @lends cc.Timer# */{ _scheduler: null, _elapsed:0.0, @@ -115,15 +111,7 @@ cc.Timer = cc._Class.extend(/** @lends cc.Timer# */{ _delay:0, _interval:0.0, - /** - * @method getInterval - * @return {Number} returns interval of timer - */ getInterval : function(){return this._interval;}, - /** - * @method setInterval - * @param {Number} interval set interval in seconds - */ setInterval : function(interval){this._interval = interval;}, setupTimerWithInterval: function(seconds, repeat, delay){ @@ -143,11 +131,6 @@ cc.Timer = cc._Class.extend(/** @lends cc.Timer# */{ return 0; }, - /** - * cc.Timer's Constructor - * @method cc.Timer - * @return {cc.Timer} - */ ctor:function () { this._scheduler = null; this._elapsed = -1; @@ -159,11 +142,6 @@ cc.Timer = cc._Class.extend(/** @lends cc.Timer# */{ this._interval = 0; }, - /** - * triggers the timer - * @method update - * @param {Number} dt delta time - */ update:function (dt) { if (this._elapsed === -1) { this._elapsed = 0;