• Sean Hammond's avatar
    Validate domainModel not vm.annotation · c32fedcd
    Sean Hammond authored
    When saving an annotation to the server, the object that we actually send to
    the server is:
    
    1. `domainModel`, after being updated by `updateDomainModel()`, in the case
       of creating a new annotation, or
    
    2. The temporary local variable `updatedDomainModel` in the case of editing
       an existing annotation
    
    `vm.annotation` is never the object that gets sent to the server.
    
    So pass `domainModel` or `updatedDomainModel` to `validate()`, not
    `vm.annotation`.
    c32fedcd
Name
Last commit
Last update
..
test Loading commit data...
annotation.js Loading commit data...
deep-count.coffee Loading commit data...
dropdown-menu-btn.js Loading commit data...
excerpt.js Loading commit data...
form-input.coffee Loading commit data...
form-validate.coffee Loading commit data...
group-list.js Loading commit data...
h-autofocus.js Loading commit data...
markdown.coffee Loading commit data...
publish-annotation-btn.js Loading commit data...
search-status-bar.js Loading commit data...
share-dialog.coffee Loading commit data...
signin-control.js Loading commit data...
simple-search.coffee Loading commit data...
sort-dropdown.js Loading commit data...
spinner.js Loading commit data...
status-button.coffee Loading commit data...
thread-filter.coffee Loading commit data...
thread.coffee Loading commit data...
top-bar.js Loading commit data...
window-scroll.js Loading commit data...