From f979546695cf183758b2de79f161b0224e921c15 Mon Sep 17 00:00:00 2001 From: Robert Leverington Date: Thu, 21 Apr 2016 15:48:00 +0100 Subject: [PATCH] Pass the jQuery variable in to the setup function, this is necessary in environments where jQuery is removed from the window scope (via `jQuery.noConflict(true);`). --- jquery.fullscreen.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.fullscreen.js b/jquery.fullscreen.js index 6dd4dc5..a9ada18 100644 --- a/jquery.fullscreen.js +++ b/jquery.fullscreen.js @@ -6,7 +6,7 @@ * (See http://www.opensource.org/licenses/mit-license) */ -(function() { +(function(jQuery) { /** * Sets or gets the fullscreen state. @@ -181,4 +181,4 @@ jQuery.fn["fullScreen"] = fullScreen; jQuery.fn["toggleFullScreen"] = toggleFullScreen; installFullScreenHandlers(); -})(); +})(jQuery);