arturadib / agility

Javascript MVC for the "write less, do more" programmer
http://agilityjs.com
MIT License
542 stars 70 forks source link

Use Object.watch() shim instead of .model.get()/set() #28

Open arturadib opened 13 years ago

arturadib commented 13 years ago

Someone claims to have a working IE8 shim for Object.watch():

http://stackoverflow.com/questions/1029241/javascript-object-watch-for-all-browsers

Not sure if that works on IE7... probably not.

Anyway, if that's an acceptable solution, we can get rid of the manual model setters/getters and simply use .model.property = "whatever".

jf26028 commented 12 years ago

This will not work because agility raises the event "change" on any general change to the model. It would be impossible to raise a generic "change" event with the utility listed above.

Jesse