• Sean Hammond's avatar
    Move render() out of AnnotationController · 335f1283
    Sean Hammond authored
    Move the public method vm.render() out of AnnotationController, making it a
    private function and renaming it to updateViewModel().
    
    This function is not part of the view model (it's never called by the
    templates, only by code in annotation.js and tests) and its tests don't need to
    be part of the annotation controller/directive tests. Move it out.
    
    All the function does is copy some fields from the domain model to the view
    model, the opposite of what the updateDomainModel() function does, so rename
    it to updateViewModel() and put it next to updateDomainModel(), clarifying its
    role.
    335f1283
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...