* More WIP on FSE

* Fix issue with events captured in VC when setFocus() toggle
This commit is contained in:
Bryan Ashby 2015-07-11 20:12:07 -06:00
parent aab07bb330
commit 1bb997133f
5 changed files with 26 additions and 51 deletions

View file

@ -210,8 +210,16 @@ ViewController.prototype.attachClientEvents = function() {
return;
}
var self = this;
this.client.on('key press', this.clientKeyPressHandler);
Object.keys(this.views).forEach(function vid(i) {
// remove, then add to ensure we only have one listener
self.views[i].removeListener('action', self.viewActionListener);
self.views[i].on('action', self.viewActionListener);
});
this.attached = true;
};