Merge pull request #142 from 2youyouo2/game

cc.Game should not initEvents in editor mode
This commit is contained in:
pandamicro
2015-12-28 22:41:22 +08:00
+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();