##// END OF EJS Templates
Use once instead of on
Jonathan Frederic -
Show More
@@ -1,1 +1,1 b''
1 Subproject commit 563c9e74b153e9509d94fd448353eeda13f0819c
1 Subproject commit 87ff70d96567bf055eb94161a41e7b3e6da31b23
@@ -182,7 +182,7 b' define(['
182 var id = utils.uuid();
182 var id = utils.uuid();
183 model.views[id] = model.state_change;
183 model.views[id] = model.state_change;
184 model.state_change.then(function(view) {
184 model.state_change.then(function(view) {
185 view.on('remove', function() {
185 view.once('remove', function() {
186 delete view.model.views[id];
186 delete view.model.views[id];
187 }, this);
187 }, this);
188 });
188 });
General Comments 0
You need to be logged in to leave comments. Login now