Skip to content

Commit c3129cf

Browse files
committed
fixed getInstance on fullscreen api
1 parent 59951ca commit c3129cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cocos2d/platform/CCScreen.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ cc.Screen.getInstance = function () {
107107
if (!this._instance){
108108
var screen = new cc.Screen();
109109
screen.init();
110+
this._instance = screen;
110111
}
111112
return this._instance;
112113
};

0 commit comments

Comments
 (0)