Merge pull request #14785 from xiaofeng11/v3.10

Fix in js-test, after UITest->UIFocus tests, in all other test scene when button clicked program will crash
This commit is contained in:
xiaofeng11 2015-12-23 18:43:07 +08:00
commit 519e69813d
1 changed files with 4 additions and 0 deletions

View File

@ -106,6 +106,10 @@ var UIFocusTestBase = UIMainLayer.extend({
widget.setColor(cc.color.WHITE);
}
}
},
onExit:function () {
cc.eventManager.removeListener(this._eventListener);
this._super();
}
});