Created
May 14, 2014 20:48
-
-
Save carlzulauf/7b3aff3c17456da1d9ea to your computer and use it in GitHub Desktop.
This file contains 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
Backbone.ajax = function(){ | |
var old_function = Backbone.ajax | |
return function() { | |
// do some stuff before calling the old function | |
result = old_function.apply(arguments) | |
// do some stuff after calling the old function | |
return result | |
} | |
}(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment