Code coverage report for src\ajax.js

Statements: 100% (8 / 8)      Branches: 50% (1 / 2)      Functions: 100% (1 / 1)      Lines: 100% (8 / 8)      Ignored: none     

All files » src/ » ajax.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19  1   1 2     2 2   2   2       2    
 
var oldAjax = jQuery.ajax;
 
jQuery.ajax = function( ) {
	var jQXHR = oldAjax.apply( this, arguments );
 
	// Be sure we got a jQXHR (e.g., not sync)
	Eif ( jQXHR.promise ) {
		migrateWarnProp( jQXHR, "success", jQXHR.done,
			"jQXHR.success is deprecated and removed" );
		migrateWarnProp( jQXHR, "error", jQXHR.fail,
			"jQXHR.error is deprecated and removed" );
		migrateWarnProp( jQXHR, "complete", jQXHR.always,
			"jQXHR.complete is deprecated and removed" );
	}
 
	return jQXHR;
};