• Robert Knight's avatar
    Fix off-screen empty drafts not being removed when a new annotation is created (#107) · e6746f9a
    Robert Knight authored
    The logic to remove new and empty annotations used to live in the
    <annotation> component because that was the only part of the code that
    had access to the state of unsaved changes.
    
    Since <annotation> instances are only created for on-screen annotations,
    this can result in empty drafts not being removed if the empty
    annotation is off-screen.
    
    Now that the canonical content of unsaved annotations is stored in the
    drafts service, we can move the logic outside of the annotation
    component and fix this problem.
    
    Fixes #97
    e6746f9a
Name
Last commit
Last update
.github Loading commit data...
docs Loading commit data...
h Loading commit data...
images Loading commit data...
scripts 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...
npm-shrinkwrap.json Loading commit data...
package.json Loading commit data...