Skip to content

Instantly share code, notes, and snippets.

@grifdail
Created April 17, 2014 05:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grifdail/10954778 to your computer and use it in GitHub Desktop.
Save grifdail/10954778 to your computer and use it in GitHub Desktop.
function superAlias(that, alias, fn) {
var old = that[alias];
that[alias] = function () {
old.apply(this,arguments);
fn.apply(this, arguments);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment