• Kyle Keating's avatar
    Refactor annotation events in root-thread · 69c87b9f
    Kyle Keating authored
    Remove state logic from root-thread and place it in corresponding stores:
    
    - deleteNewAndEmptyAnnotations moves to drafts and renamed to deleteNewAndEmptyDrafts
    - events.BEFORE_ANNOTATION_CREATED's logic moves to createAnnotation in annotations store
    - selection store handles REMOVE_ANNOTIONS action directly
    69c87b9f
drafts.js 4.57 KB