Skip to content

Commit

Permalink
issue #3419 fix bug for TriggerTest.
Browse files Browse the repository at this point in the history
  • Loading branch information
xingsenma committed Jan 7, 2014
1 parent 4f416e2 commit 34f7318
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/CocoStudioTest/SceneTest/SceneEditorTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ var TriggerTest = SceneEditorTestLayer.extend({
this.addChild(node);
ccs.ActionManager.getInstance().playActionByName("startMenu_1.json", "Animation1");

this.schedule(this.gameLogic, this);
this.schedule(this.gameLogic);
this.setTouchEnabled(true);
ccs.sendEvent(TRIGGEREVENT_ENTERSCENE);

Expand Down Expand Up @@ -419,7 +419,7 @@ var TriggerTest = SceneEditorTestLayer.extend({
},

gameLogic: function () {
this.sendEvent(TRIGGEREVENT_UPDATESCENE);
ccs.sendEvent(TRIGGEREVENT_UPDATESCENE);
},
title: function () {
return "Trigger Test";
Expand Down
2 changes: 1 addition & 1 deletion tests/CocoStudioTest/SceneTest/TriggerCode/Acts.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ var TriggerState = ccs.BaseTriggerAction.extend({

done: function () {
var obj = ccs.TriggerMng.getInstance().getTriggerObj(this._id);
if (!obj) {
if (obj) {
if (this._state == 0) {
obj.setEnable(false);
}
Expand Down

0 comments on commit 34f7318

Please sign in to comment.