Skip to main content

Bug Tracker

Side navigation

Ticket #1905: 1905.diff


File 1905.diff, 0.5 KB (added by davidserduke, November 09, 2007 12:27AM UTC)

patch

Index: src/ajax.js
===================================================================
--- src/ajax.js	(revision 3798)
+++ src/ajax.js	(working copy)
@@ -174,7 +174,7 @@
 		}
 
 		// Build temporary JSONP function
-		if ( s.dataType == "json" && (s.data && jsre.test( s.data ) || s.url.match(jsre)) ) {
+		if ( s.dataType == "json" && (s.data && s.data.match(jsre) || s.url.match(jsre)) ) {
 			jsonp = "jsonp" + jsc++;
 
 			// Replace the =? sequence both in the query string and the data

Download in other formats:

Original Format