Merge pull request #13593 from jianglong0156/fixActionParamError

fix Action:Place, RotateTo param wrong number error
This commit is contained in:
pandamicro 2015-08-27 17:44:46 +08:00
commit 032bc590b7
1 changed files with 2 additions and 2 deletions

View File

@ -546,7 +546,7 @@ cc.Place.prototype._ctor = function(pos, y) {
y = pos.y;
pos = pos.x;
}
this.initWithPosition(pos, y);
this.initWithPosition(cc.p(pos, y));
}
};
@ -609,7 +609,7 @@ cc.RotateTo.prototype._ctor = cc.RotateBy.prototype._ctor = function(duration, d
if (deltaAngleY !== undefined)
this.initWithDuration(duration, deltaAngleX, deltaAngleY);
else
this.initWithDuration(duration, deltaAngleX);
this.initWithDuration(duration, deltaAngleX, deltaAngleX);
}
};