Created
May 16, 2012 23:19
-
-
Save nthx/2714844 to your computer and use it in GitHub Desktop.
ObjectHelper
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
class ObjectHelper | |
@addRole: (base, role) => | |
if not role::augment? | |
throw "RoleMustHave.augment()" | |
role::augment(base) | |
_.bindAll(base) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment