Skip to content

Bugfix: constructor/callbacks-once/

Compare
Choose a tag to compare
@ilyavf ilyavf released this 08 Feb 23:33
· 433 commits to master since this release

#253

The callback-once behavior is to prevent calling the same callbacks multiple times for the same data. E.g. if a new item is created via AJAX, but also WebSocket might receive a "created" event.

The bug was that the behavior didn't consider the method names, e.g. if createdInstance was called for an item then destroyedInstance was not called for the same item.