Skip to content

Commit

Permalink
Merge pull request #54 from uestla/patch-1
Browse files Browse the repository at this point in the history
Global 'window' variable made local
  • Loading branch information
vojtech-dobes committed Feb 10, 2013
2 parents 358c921 + dce5cb2 commit 693a482
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 693a482

Please sign in to comment.