bruth / synapse

Hooks to support data binding between virtually any object.
http://bruth.github.com/synapse/docs/
BSD 2-Clause "Simplified" License
150 stars 6 forks source link

Define mixin for seamless integration with jQuery and Backbone #1

Closed bruth closed 12 years ago

bruth commented 12 years ago

It is quite hideous having to wrap objects with the Synapse constructor:

Synapse(obj).observe(...)

Assuming noConflict is not set, one should be able to do this:

var model = new Backbone.Model;

$('input').observe(model);
// or
model.observe('input')
bruth commented 12 years ago

Does not need to be limited to these types. See #11