Skip to content

Instantly share code, notes, and snippets.

@dobrokot
Created October 8, 2011 13:23
Show Gist options
  • Save dobrokot/1272281 to your computer and use it in GitHub Desktop.
Save dobrokot/1272281 to your computer and use it in GitHub Desktop.
// Determine support properties
(function( xhr ) {
jQuery.extend( jQuery.support, {
ajax: !!xhr,
cors: !!xhr && ( "withCredentials" in xhr )
});
})( jQuery.ajaxSettings.xhr() );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment