jquery ajax: Closes #1516. load() can get a string of data (not only a hash) and...
[jquery.git] / src / ajax.js
index 3e43ffb..eb81e4c 100644 (file)
@@ -26,7 +26,7 @@ jQuery.fn.extend({
                                params = null;
 
                        // Otherwise, build a param string
-                       } else {
+                       } else if( typeof params == 'object' ) {
                                params = jQuery.param( params );
                                type = "POST";
                        }