cozy / cozy-contacts-v2

Contact books manager for Cozy
http://cozy.io
GNU Affero General Public License v3.0
20 stars 20 forks source link

Changing once a contact trigger two `change`events #235

Closed misstick closed 8 years ago

misstick commented 8 years ago
  1. I click on 1 contact,
  2. I click on a tag,
  3. the tag is added in the card,
  4. updateTags is called once,
  5. model ‘contact’ is changed once,
  6. contact.changeevent is recieved twice.

I seems to come from this : @listenToOnce @, 'sync', -> @contactListener.watch @ client/app/collections/contacts.coffee l51

m4dz commented 8 years ago

The recent refactor of models events lifecycles should have fixed this one.