Skip to content

Commit 5cb5328

Browse files
committed
Merge pull request js-cookie#81 from FagnerMartinsBrack/patch-document
Pass document through the immediately-invoked function expression, less lookup and improving minification.
2 parents e54d272 + 8c7922b commit 5cb5328

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jquery.cookie.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* http://www.opensource.org/licenses/mit-license.php
88
* http://www.opensource.org/licenses/GPL-2.0
99
*/
10-
(function($) {
10+
(function($, document) {
1111
$.cookie = function(key, value, options) {
1212

1313
// key and at least value given, set cookie...
@@ -49,4 +49,4 @@
4949

5050
$.cookie.defaults = {};
5151

52-
})(jQuery);
52+
})(jQuery, document);

0 commit comments

Comments
 (0)