Commit 6b7a52b2 authored by Timmy Willison's avatar Timmy Willison

Adjust prefilter test to error on string indexing in oldIE

parent 679536ee
...@@ -1526,7 +1526,8 @@ module( "ajax", { ...@@ -1526,7 +1526,8 @@ module( "ajax", {
ajaxTest( "jQuery.ajaxPrefilter() - abort", 1, { ajaxTest( "jQuery.ajaxPrefilter() - abort", 1, {
setup: function() { setup: function() {
jQuery.ajaxPrefilter(function( options, _, jqXHR ) { // Ensure prefix does not throw an error
jQuery.ajaxPrefilter("+prefix *", function( options, _, jqXHR ) {
if ( options.abortInPrefilter ) { if ( options.abortInPrefilter ) {
jqXHR.abort(); jqXHR.abort();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment