private-face / jquery.fullscreen

jQuery plugin for opening page elements in fullscreen mode.
MIT License
148 stars 83 forks source link

Cannot read property 'styles' of null #27

Closed Antafes closed 9 years ago

Antafes commented 9 years ago

On closing the fullscreen (via ESC or with $.fullscreen.exit()) a JavaScript error is thrown, caused by the empty variable this.__options.

Traceback:

Uncaught TypeError: Cannot read property 'styles' of null jquery.fullscreen-0.4.1.js?1415789586:129 FullScreenAbstract._revertStyles jquery.fullscreen-0.4.1.js?1415789586:129 FullScreenAbstract._fullScreenChange jquery.fullscreen-0.4.1.js?1415789586:95 n.extend.proxy.n.isFunction.e jquery-1.11.0.min.js?1415716298:2 n.event.dispatch jquery-1.11.0.min.js?1415716298:3 n.event.add.r.handle jquery-1.11.0.min.js?1415716298:3

We're using the jQuery 1.11.0 and the error is thrown on Chrome 38, Firefox 32 + 33 and IE 10 + 11 with native fullscreen.

private-face commented 9 years ago

Fixed in v.0.5.0