Skip to content

Commit 5ca8515

Browse files
committed
Use Element.ALLOW_KEYBOARD_INPUT only when browser knows this constant
1 parent 888a01a commit 5ca8515

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

jquery.fullscreen-min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jquery.fullscreen.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,13 @@ function fullScreen(state)
7979
func = (/** @type {?Function} */ e["requestFullScreen"])
8080
|| (/** @type {?Function} */ e["webkitRequestFullScreen"])
8181
|| (/** @type {?Function} */ e["mozRequestFullScreen"]);
82-
if (func) func.call(e, Element["ALLOW_KEYBOARD_INPUT"]);
82+
if (func)
83+
{
84+
if (Element["ALLOW_KEYBOARD_INPUT"])
85+
func.call(e, Element["ALLOW_KEYBOARD_INPUT"]);
86+
else
87+
func.call(e);
88+
}
8389
return this;
8490
}
8591
else

0 commit comments

Comments
 (0)