mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
Merge pull request #142 from 2youyouo2/game
cc.Game should not initEvents in editor mode
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user