maqetta/maqetta — comment on commit 63dc761994d418e9ff71447eb112c5d0be98cd40
File: maqetta.core.client/WebContent/davinci/ve/views/StatesView.js line 78
By JonFerraiolo:

Shouldn't be necessary to filter in this case. StatesView is a singleton class (i.e., there is one global StatesView, not one per document) that listens for changes in editors, and only shows content for the current editor. As a result, it should only get "context/loaded" and "context/statesLoaded" events for the current editor. I verified by putting a breakpoint in the callbacks when multiple editors were open and the callback was only invoked once when either a new document was created or an existing document opened.