mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-25 06:23:43 +00:00
Replace $.noop by function that throws to not fail silently
This commit is contained in:
parent
5fe310600f
commit
b02e19891a
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue