-// Default jsonp callback name
-jQuery.ajaxSettings.jsonpCallback = function() {
- return "jsonp" + jsc++;
-};
-
-// Normalize jsonp queries
-// 1) put callback parameter in url or data
-// 2) sneakily ensure transportDataType is json
-// 3) ensure options jsonp is always provided so that jsonp requests are always
-// json request with the jsonp option set
-jQuery.ajax.prefilter("json jsonp", function(s) {
+// Default jsonp settings
+jQuery.ajaxSetup({
+ jsonp: "callback",
+ jsonpCallback: function() {
+ return "jsonp" + jsc++;
+ }
+});