coresmart / persistencejs

persistence.js is an asynchronous Javascript database mapper library. You can use it in the browser, as well on the server (and you can share data models between them).
http://persistencejs.org
1.73k stars 240 forks source link

Duplicate events for QueryCollection.prototype.add() #82

Closed superquadratic closed 12 years ago

superquadratic commented 12 years ago

Adding events for persistence.add() introduced duplicate events to be triggered for QueryCollection.prototype.add(). There's even tests failing because of that, unfortunately I had forgotten to run them.

I'm very sorry for the premature pull request. I reverted the commit for now and will be back with a proper fix later.