• Robert Knight's avatar
    Save annotation state to drafts whenever annotation component is destroyed · 645858cb
    Robert Knight authored
    Prior to this unsaved changes were lost when an annotation being edited
    was scrolled off-screen and the annotation component was destroyed.
    
    There was already a mechanism in place for persisting unsaved changes
    to a temporary store when switching accounts and when switching groups
    but this was only triggered when the signed in user changed or the
    focused group changed.
    
    This commit unifies the handling of all three cases by listening
    for the '$destroy' event which is fired whenever an <annotation>
    is about to be destroyed.
    645858cb
Name
Last commit
Last update
h Loading commit data...
scripts Loading commit data...
.hound.yml Loading commit data...
.jscsrc Loading commit data...
.jshintignore Loading commit data...
.jshintrc Loading commit data...
gulpfile.js Loading commit data...
package.json Loading commit data...