Skip to content

Commit

Permalink
Global 'window' variable made local
Browse files Browse the repository at this point in the history
  • Loading branch information
uestla committed Feb 10, 2013
1 parent 358c921 commit dce5cb2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nette.ajax.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/**
* AJAX Nette Framework plugin for jQuery
*
Expand All @@ -10,7 +9,7 @@
* @version 1.2.1
*/

(function($, undefined) {
(function(window, $, undefined) {

if (typeof $ != 'function') {
return console.error('nette.ajax.js: jQuery is missing, load it please');
Expand Down Expand Up @@ -480,4 +479,4 @@ $.nette.ext('init', {
buttonSelector: 'input.ajax[type="submit"], button.ajax[type="submit"], input.ajax[type="image"]'
});

})(window.jQuery);
})(window, window.jQuery);

0 comments on commit dce5cb2

Please sign in to comment.