Small adjustment to prefilter test. Follow the right path for prefixes.

This commit is contained in:
Timmy Willison 2013-09-12 15:52:23 -05:00
parent 68213f20bb
commit e12746d756

View File

@ -1525,9 +1525,10 @@ module( "ajax", {
//----------- jQuery.ajaxPrefilter()
ajaxTest( "jQuery.ajaxPrefilter() - abort", 1, {
dataType: "prefix",
setup: function() {
// Ensure prefix does not throw an error
jQuery.ajaxPrefilter("+prefix *", function( options, _, jqXHR ) {
jQuery.ajaxPrefilter("+prefix", function( options, _, jqXHR ) {
if ( options.abortInPrefilter ) {
jqXHR.abort();
}