codebrew / backbone-rails

Easily use backbone.js with rails 3.1
MIT License
1.62k stars 255 forks source link

updated the backbone datalink plugin. #66

Closed kayluhb closed 7 years ago

kayluhb commented 12 years ago

I updated the backbone datalink to trigger the change event on loading of the form for fields that don't get changed before submit (pre-populated data/selects) and not use anonymous functions (bad practice). Also consolidated the event name for a smaller js footprint/easier to maintain.