Skip to content

Instantly share code, notes, and snippets.

@mizchi
Created September 7, 2012 10:35
Show Gist options
  • Save mizchi/3664997 to your computer and use it in GitHub Desktop.
Save mizchi/3664997 to your computer and use it in GitHub Desktop.
ActiveModel
class Backbone.ActiveModel extends Backbone.Model
constructor: ->
super arguments...
_.each @attributes, (value, key) =>
@__defineGetter__ key, => @get key
@__defineSetter__ key, => @set key, value
@mizchi
Copy link
Author

mizchi commented Sep 7, 2012

IE8は死ぬ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment