File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -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 ) ;
270
+ window . addEventListener ( 'orientationchange' , this . _orientationChange , this ) ;
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 ) ;
277
+ window . removeEventListener ( 'orientationchange' , this . _orientationChange , this ) ;
278
278
}
279
279
}
280
280
} ,
You can’t perform that action at this time.
0 commit comments