Replace $.noop by function that throws to not fail silently

This commit is contained in:
Ghislain Seguin 2011-06-29 21:02:53 -07:00
parent 5fe310600f
commit b02e19891a

View file

@ -615,7 +615,9 @@
$.ajaxTransport("+*", function( s ) {
if ( s.crossDomain && !$.mobile.ajaxCrossDomainEnabled ) {
return {
send: $.noop,
send: function() {
$.error( "Cross domain .ajax() calls are disabled." );
},
abort: $.noop
};
}