From 803dc0ce7ccd0e29bcb2894ab4e780ac4fca2977 Mon Sep 17 00:00:00 2001 From: Bob Holt Date: Tue, 29 Sep 2015 12:16:09 -0400 Subject: [PATCH] add sync, change, and destroy events My implementation requires listening for sync, change, and destroy events on collections as well as add, remove, and reset. Thoughts? --- ampersand-react-mixin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ampersand-react-mixin.js b/ampersand-react-mixin.js index 99eee13..3cc381a 100644 --- a/ampersand-react-mixin.js +++ b/ampersand-react-mixin.js @@ -29,7 +29,7 @@ module.exports = events.createEmitter({ if (modelOrCollection !== null && typeof modelOrCollection === 'object'){ if (modelOrCollection.isCollection) { - events = 'add remove reset'; + events = 'add remove reset sync change destroy'; } else if (modelOrCollection.isState) { events = 'change'; }