Merge pull request #301 from minggo/master

fix some comment error
This commit is contained in:
Jare Guo
2016-01-29 15:29:15 +08:00
2 changed files with 2 additions and 24 deletions
+1 -1
View File
@@ -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) {
+1 -23
View File
@@ -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;