noveogroup / backbone.iobind

Bind socket.io events to backbone models & collections. Also includes a drop-in replacement for Backbone.sync using socket.io.

Home Page:https://noveogroup.github.io/backbone.iobind/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ioBind can't be used before the model has an id.

geon opened this issue · comments

Obviously, the server can't trigger events on objects without an id, but it should be possible to ioBind an object before the id is set, and have it re-bind the socket.io event.

This issue also affects any other situation where the model id changes, such as a call to clear.