Skip to content

Instantly share code, notes, and snippets.

@chrislaughlin
Last active August 29, 2015 14:05
Show Gist options
  • Save chrislaughlin/e04c2a34ee2a263745d5 to your computer and use it in GitHub Desktop.
Save chrislaughlin/e04c2a34ee2a263745d5 to your computer and use it in GitHub Desktop.
call back with noop
jQuery.fn.someAjaxStyleFunc = function(url, complete) {
return jQuery.ajax(url || this.url)
.complete(complete || jQuery.noop);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment