@@ -491,8 +491,10 @@ cc.Repeat = cc.ActionInterval.extend(/** @lends cc.Repeat# */{
491491 if ( this . initWithDuration ( duration ) ) {
492492 this . _times = times ;
493493 this . _innerAction = action ;
494- if ( action instanceof cc . ActionInstant )
494+ if ( action instanceof cc . ActionInstant ) {
495+ this . _actionInstant = true ;
495496 this . _times -= 1 ;
497+ }
496498 this . _total = 0 ;
497499 return true ;
498500 }
@@ -551,9 +553,9 @@ cc.Repeat = cc.ActionInterval.extend(/** @lends cc.Repeat# */{
551553 if ( time >= 1.0 && this . _total < locTimes )
552554 this . _total ++ ;
553555
554- // don't set a instantaction back or update it, it has no use because it has no duration
555- if ( this . _actionInstant ) {
556- if ( this . _total == locTimes ) {
556+ // don't set a instant action back or update it, it has no use because it has no duration
557+ if ( ! this . _actionInstant ) {
558+ if ( this . _total === locTimes ) {
557559 locInnerAction . update ( 1 ) ;
558560 locInnerAction . stop ( ) ;
559561 } else {
@@ -1003,7 +1005,7 @@ cc.RotateBy = cc.ActionInterval.extend(/** @lends cc.RotateBy# */{
10031005
10041006 /**
10051007 * @constructor
1006- * @param {Number } duration druation in seconds
1008+ * @param {Number } duration duration in seconds
10071009 * @param {Number } deltaAngleX deltaAngleX in degrees
10081010 * @param {Number } [deltaAngleY] deltaAngleY in degrees
10091011 * @example
@@ -1061,7 +1063,7 @@ cc.RotateBy = cc.ActionInterval.extend(/** @lends cc.RotateBy# */{
10611063 } ,
10621064
10631065 /**
1064- * @return {cc.ActionInterval }
1066+ * @return {cc.RotateBy }
10651067 */
10661068 reverse :function ( ) {
10671069 var action = cc . RotateBy . create ( this . _duration , - this . _angleX , - this . _angleY ) ;
@@ -1071,7 +1073,7 @@ cc.RotateBy = cc.ActionInterval.extend(/** @lends cc.RotateBy# */{
10711073} ) ;
10721074
10731075/**
1074- * @param {Number } duration druation in seconds
1076+ * @param {Number } duration duration in seconds
10751077 * @param {Number } deltaAngleX deltaAngleX in degrees
10761078 * @param {Number } [deltaAngleY] deltaAngleY in degrees
10771079 * @return {cc.RotateBy }
@@ -1201,7 +1203,7 @@ cc.MoveBy = cc.ActionInterval.extend(/** @lends cc.MoveBy# */{
12011203
12021204/**
12031205 * @param {Number } duration duration in seconds
1204- * @param {cc.Point|Number } deltaPosition
1206+ * @param {cc.Point|Number } deltaPos
12051207 * @param {Number } deltaY
12061208 * @return {cc.MoveBy }
12071209 * @example
0 commit comments