File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -228,8 +228,8 @@ cc.EGLView = cc.Class.extend(/** @lends cc.view# */{
228
228
} ,
229
229
230
230
_orientationChange : function ( ) {
231
- this . _orientationChanging = true ;
232
- this . _resizeEvent ( ) ;
231
+ cc . view . _orientationChanging = true ;
232
+ cc . view . _resizeEvent ( ) ;
233
233
} ,
234
234
235
235
/**
@@ -267,14 +267,14 @@ cc.EGLView = cc.Class.extend(/** @lends cc.view# */{
267
267
if ( ! this . __resizeWithBrowserSize ) {
268
268
this . __resizeWithBrowserSize = true ;
269
269
window . addEventListener ( 'resize' , this . _resizeEvent ) ;
270
- window . addEventListener ( 'orientationchange' , this . _orientationChange , this ) ;
270
+ window . addEventListener ( 'orientationchange' , this . _orientationChange ) ;
271
271
}
272
272
} else {
273
273
//disable
274
274
if ( this . __resizeWithBrowserSize ) {
275
275
this . __resizeWithBrowserSize = false ;
276
276
window . removeEventListener ( 'resize' , this . _resizeEvent ) ;
277
- window . removeEventListener ( 'orientationchange' , this . _orientationChange , this ) ;
277
+ window . removeEventListener ( 'orientationchange' , this . _orientationChange ) ;
278
278
}
279
279
}
280
280
} ,
You can’t perform that action at this time.
0 commit comments