Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SamWhited/3836532 to your computer and use it in GitHub Desktop.
Save SamWhited/3836532 to your computer and use it in GitHub Desktop.
(
this[key] = ->
return this.attrs[key]
) for key in this.attrs
for (key in this.attrs) {
this[key] = function() {
return this.attrs[key];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment