typeof check is reverted for the toggleFull

This commit is contained in:
Vadim Makeev 2010-11-08 17:56:47 +03:00
parent 247d715ff0
commit 5abdab1783
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
}
function toggleFull(force) {
fullscreen = (force != null) ? !!force : (
fullscreen = (typeof force == 'boolean') ? force : (
window.fullScreen || // Firefox
document.webkitFullScreen || // Webkit
screen.width == window.outerWidth && screen.height == window.outerHeight