From 3c641bd1345aa25489fc16f09d5f4709bf05b09b Mon Sep 17 00:00:00 2001 From: jaubourg Date: Fri, 10 Dec 2010 03:14:03 +0100 Subject: [PATCH] Fixed function closures so that Makefile can do its magic. --- src/transports/jsonp.js | 2 +- src/transports/script.js | 2 +- src/transports/xhr.js | 2 +- src/xhr.js | 8 +++++--- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/transports/jsonp.js b/src/transports/jsonp.js index 2bdce23..228a4d3 100644 --- a/src/transports/jsonp.js +++ b/src/transports/jsonp.js @@ -86,4 +86,4 @@ jQuery.xhr.bindTransport("json", function(s) { }); -})(jQuery); +})( jQuery ); diff --git a/src/transports/script.js b/src/transports/script.js index 5470dec..fe38735 100644 --- a/src/transports/script.js +++ b/src/transports/script.js @@ -80,4 +80,4 @@ jQuery.xhr.bindTransport("script", function(s) { } }); -})(jQuery); +})( jQuery ); diff --git a/src/transports/xhr.js b/src/transports/xhr.js index 129058e..783ee46 100644 --- a/src/transports/xhr.js +++ b/src/transports/xhr.js @@ -188,4 +188,4 @@ jQuery(window).bind( "unload" , function() { }); -})(jQuery); +})( jQuery ); diff --git a/src/xhr.js b/src/xhr.js index 401619c..649a8cd 100644 --- a/src/xhr.js +++ b/src/xhr.js @@ -1,4 +1,4 @@ -(function( jQuery , undefined ) { +(function( jQuery ) { var rquery = /\?/, rhash = /#.*$/, @@ -9,7 +9,9 @@ var rquery = /\?/, slice = Array.prototype.slice, - isFunction = jQuery.isFunction; + isFunction = jQuery.isFunction, + + undefined; // Creates a jQuery xhr object jQuery.xhr = function( _native ) { @@ -923,4 +925,4 @@ function determineDataType( s , ct , text , xml ) { return response; } -})(jQuery); +})( jQuery ); -- 1.7.10.4