• Robert Knight's avatar
    Remove `updateViewModel` · 5408f2f3
    Robert Knight authored
    The `updateViewModel()` function was responsible for computing several
    pieces of data (links, document domain and title) used by the annotation
    template.
    
    Since we can now rely on vm.annotation being immutable, we can just
    compute this data lazily when we need it and use memoization to avoid
    unnecessary recalculation.
    5408f2f3
Name
Last commit
Last update
.github Loading commit data...
h Loading commit data...
images Loading commit data...
scripts Loading commit data...
.gitignore Loading commit data...
.hound.yml Loading commit data...
.jscsrc Loading commit data...
.jshintignore Loading commit data...
.jshintrc Loading commit data...
.npmignore Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
gulpfile.js Loading commit data...
npm-shrinkwrap.json Loading commit data...
package.json Loading commit data...