jquery ajax: Closes #1516. load() can get a string of data (not only a hash) and...
authorAriel Flesler <aflesler@gmail.com>
Tue, 27 May 2008 22:44:06 +0000 (22:44 +0000)
committerAriel Flesler <aflesler@gmail.com>
Tue, 27 May 2008 22:44:06 +0000 (22:44 +0000)
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";
                        }