noveogroup / backbone.iobind

Bind socket.io events to backbone models & collections. Also includes a drop-in replacement for Backbone.sync using socket.io.
https://noveogroup.github.io/backbone.iobind/
582 stars 65 forks source link

Unbind on destroy; improve unbind logic #70

Open megawac opened 8 years ago

megawac commented 8 years ago

When a model is destroyed this patch will have it automatically unbind its socket. This also stops the event object from becoming populated with false elements after numerous unbinds