When you call $.fullscreen.exit(); and the fullscreen wasn't open, you get the error
SCRIPT5007: Die Eigenschaft "styles" eines undefinierten oder Nullverweises kann nicht abgerufen werden.
jquery.fullscreen-0.4.1.js, Zeile 128 Zeichen 3
I fixed that in Line 238 with:
exit: function() {
//added block
if (!this.__isFullScreen) {
return;
}
//added block ENDE
this.__isFullScreen = false;
this._fullScreenChange();
},
@wachri Thank you for the report and fix! You can submit a pull-request with it if you wish. If not, please comment here, I will make the changes myself.
When you call
$.fullscreen.exit();
and the fullscreen wasn't open, you get the errorI fixed that in Line 238 with: