• Robert Knight's avatar
    Fix group focus change checks · 8a05a367
    Robert Knight authored
    The focused group change check had several issues:
    
     - The `prevFocused` variable was not updated after the focused group
       changed, so the `GROUP_FOCUSED` event was emitted every time the app
       state changed.
    
     - Groups were compared by reference rather than by ID, which means that
       a change which modified a property of the group but not its ID would
       cause the event to fire.
    
    The first issue made it impossible to create annotations because the
    unnecessary `GROUP_FOCUSED` event triggered a cascade of reactions which
    crashed the app.
    8a05a367
Name
Last commit
Last update
.github Loading commit data...
docs Loading commit data...
images Loading commit data...
scripts Loading commit data...
src Loading commit data...
.babelrc Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.npmrc Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CODE_OF_CONDUCT Loading commit data...
Jenkinsfile Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
gulpfile.js Loading commit data...
package.json Loading commit data...
requirements-dev.in Loading commit data...
yarn.lock Loading commit data...