• 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
annotation.html 6.73 KB