code: function() {
  
  		// XHR cannot access local files, always use ActiveX for that case
  		if ( this.isLocal ) {
  			return createActiveXHR();
  		}
  
  		// Support: IE 9-11
  		// IE seems to error on cross-domain PATCH requests when ActiveX XHR
  		// is used. In IE 9+ always use the native XHR.
  		// Note: this condition won't catch Edge as it doesn't define
  		// document.documentMode but it also doesn't support ActiveX so it won't
  		// reach this code.
  		if ( document.documentMode > 8 ) {
  			return createStandardXHR();
  		}
  
  		// Support: IE<9
  		// oldIE XHR does not support non-RFC2616 methods (#13240)
  		// See http://msdn.microsoft.com/en-us/library/ie/ms536648(v=vs.85).aspx
  		// and http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9
  		// Although this check for six methods instead of eight
  		// since IE also does not support "trace" and "connect"
  		return /^(get|post|head|put|delete|options)$/i.test( this.type ) &&
  			createStandardXHR() || createActiveXHR();
  	}
docs: Support: IE6-IE8