• 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
..
annotation-test.js Loading commit data...
excerpt-test.js Loading commit data...
form-input-test.coffee Loading commit data...
form-validate-test.coffee Loading commit data...
group-list-test.js Loading commit data...
publish-annotation-btn-test.js Loading commit data...
search-status-bar-test.js Loading commit data...
share-dialog-test.coffee Loading commit data...
simple-search-test.coffee Loading commit data...
sort-dropdown-test.js Loading commit data...
spinner-test.js Loading commit data...
status-button-test.coffee Loading commit data...
thread-test.coffee Loading commit data...
util.js Loading commit data...
window-scroll-test.js Loading commit data...