Merge pull request #2370 from fusijie/fixed_action_bug

fixed action bug.
This commit is contained in:
pandamicro
2018-02-27 11:17:04 +08:00
committed by GitHub
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ cc.CardinalSplineTo = cc.Class({
this._tension = 0;
this._previousPosition = null;
this._accumulatedDiff = null;
tension !== undefined && this.initWithDuration(duration, points, tension);
tension !== undefined && cc.CardinalSplineTo.prototype.initWithDuration.call(this, duration, points, tension);
},
initWithDuration:function (duration, points, tension) {
+7 -7
View File
@@ -60,7 +60,7 @@ cc.ActionInterval = cc.Class({
this._repeatForever = false;
this._repeatMethod = false;//Compatible with repeat class, Discard after can be deleted
this._speedMethod = false;//Compatible with repeat class, Discard after can be deleted
d !== undefined && this.initWithDuration(d);
d !== undefined && cc.ActionInterval.prototype.initWithDuration.call(this, d);
},
/*
@@ -1068,7 +1068,7 @@ cc.MoveBy = cc.Class({
this._startPosition = cc.p(0, 0);
this._previousPosition = cc.p(0, 0);
deltaPos !== undefined && this.initWithDuration(duration, deltaPos, deltaY);
deltaPos !== undefined && cc.MoveBy.prototype.initWithDuration.call(this, duration, deltaPos, deltaY);
},
/*
@@ -1260,7 +1260,7 @@ cc.SkewTo = cc.Class({
this._endSkewY = 0;
this._deltaX = 0;
this._deltaY = 0;
sy !== undefined && this.initWithDuration(t, sx, sy);
sy !== undefined && cc.SkewTo.prototype.initWithDuration.call(this, t, sx, sy);
},
/*
@@ -1431,7 +1431,7 @@ cc.JumpBy = cc.Class({
this._height = 0;
this._jumps = 0;
height !== undefined && this.initWithDuration(duration, position, y, height, jumps);
height !== undefined && cc.JumpBy.prototype.initWithDuration.call(this, duration, position, y, height, jumps);
},
/*
* Initializes the action.
@@ -1641,7 +1641,7 @@ cc.BezierBy = cc.Class({
this._config = [];
this._startPosition = cc.p(0, 0);
this._previousPosition = cc.p(0, 0);
c && this.initWithDuration(t, c);
c && cc.BezierBy.prototype.initWithDuration.call(this, t, c);
},
/*
@@ -1842,7 +1842,7 @@ cc.ScaleTo = cc.Class({
this._endScaleY = 0;
this._deltaX = 0;
this._deltaY = 0;
sx !== undefined && this.initWithDuration(duration, sx, sy);
sx !== undefined && cc.ScaleTo.prototype.initWithDuration.call(this, duration, sx, sy);
},
/*
@@ -2051,7 +2051,7 @@ cc.FadeTo = cc.Class({
ctor:function (duration, opacity) {
this._toOpacity = 0;
this._fromOpacity = 0;
opacity !== undefined && this.initWithDuration(duration, opacity);
opacity !== undefined && cc.FadeTo.prototype.initWithDuration.call(this, duration, opacity);
},
/*