Skip to content

Instantly share code, notes, and snippets.

@mgol
Last active April 25, 2017 10:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgol/6437795 to your computer and use it in GitHub Desktop.
Save mgol/6437795 to your computer and use it in GitHub Desktop.
hooks.method = function() {
if (supportTestPasses()) {
delete hooks.method;
return;
}
hooks.method = function () {
// current hook code here
}
return hooks.method();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment