Skip to content

Commit e5114d9

Browse files
committed
Issue #2803: fixed a bug for cc.FlipY and fixed a bug for Transition
1 parent bfa9994 commit e5114d9

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

cocos2d/actions/CCActionInstant.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ cc.FlipY = cc.ActionInstant.extend(/** @lends cc.FlipY# */{
275275
*/
276276
update:function (time) {
277277
//this._super();
278-
this._target.setFlippedY(this._flipY);
278+
this._target.setFlippedY(this._flippedY);
279279
},
280280

281281
/**

cocos2d/layers_scenes_transitions_nodes/CCTransition.js

-6
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,6 @@ cc.TransitionSceneOriented.create = function (t, scene, orientation) {
277277
* @extends cc.TransitionScene
278278
*/
279279
cc.TransitionRotoZoom = cc.TransitionScene.extend(/** @lends cc.TransitionRotoZoom# */{
280-
/**
281-
* Constructor
282-
*/
283-
ctor:function () {
284-
},
285-
286280
/**
287281
* Custom On Enter callback
288282
* @override

cocos2d/layers_scenes_transitions_nodes/CCTransitionPageTurn.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ cc.TransitionPageTurn = cc.TransitionScene.extend(/** @lends cc.TransitionPageTu
5454
// XXX: needed before [super init]
5555
this._back = backwards;
5656

57-
if (cc.TransitionScene.prototype.initWithDuration(this, t, scene)) {
57+
if (cc.TransitionScene.prototype.initWithDuration.call(this, t, scene)) {
5858
// do something
5959
}
6060
return true;

samples

0 commit comments

Comments
 (0)