Created
September 10, 2015 10:19
-
-
Save CatTail/751ec42e6a4c0f56cad4 to your computer and use it in GitHub Desktop.
Simple decorate function
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
function decorate(decorator, decorated, context) { | |
return function() { | |
decorated.apply(context, decorator.apply(this, arguments)); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment