Created
September 7, 2012 10:35
-
-
Save mizchi/3664997 to your computer and use it in GitHub Desktop.
ActiveModel
This file contains 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 Backbone.ActiveModel extends Backbone.Model | |
constructor: -> | |
super arguments... | |
_.each @attributes, (value, key) => | |
@__defineGetter__ key, => @get key | |
@__defineSetter__ key, => @set key, value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
IE8は死ぬ