cc.Game should not initEvents in editor mode

This commit is contained in:
2youyouo2
2015-12-28 18:24:40 +08:00
parent 5d4aa6276f
commit d82522ad6f
+3 -1
View File
@@ -224,7 +224,9 @@ var game = /** @lends cc.game# */{
*/
cc.winSize = cc.director.getWinSize();
this._initEvents();
if (!CC_EDITOR) {
this._initEvents();
}
this._setAnimFrame();
this._runMainLoop();