hoodiehq/backbone-hoodie — pull request #18 by laurens (2014-10-25 21:51:24+00:00)
Title: Initialize specs

This Pull Request adds tests for the `hoodie.store` event handlers in `Backbone.Collection.initialize` and fixes some issues.

I have removed the checks for `self.storeBindingFilter` since this not implemented anywhere.

Instead all event handlers do a check for `options.remote` and the collection is only updated if `options.remote` is set. This ensures that the collection is not changed twice when an event is triggered by the client. This implies, that all client-side changes for a collection are made via Backbone.

I have removed the calls to `trigger('create')` and `trigger('update')`, since they do not have any effect. Or are these custom (non-Backbone) events triggered intentionally?

Apart form that, I have fixed an issue where the type of the collection was always `undefined`.