Last active
August 29, 2015 14:05
-
-
Save chrislaughlin/e04c2a34ee2a263745d5 to your computer and use it in GitHub Desktop.
call back with noop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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