• Robert Knight's avatar
    Fix null-safety errors · e36b238f
    Robert Knight authored
    Various methods in `DocumentMeta` assume that `this.metadata.{dc,
    highwire, ...}` properties exist, but this is only true once the
    `getDocumentMetadata()` function has been called.
    
    Adjust the constructor so that these fields always exist.
    
    Note that while this avoids an exception if calling certain methods before
    `getDocumentMetadata`, it would still be a logical error if that
    happened. For the moment such a mistake is just silently ignored.
    e36b238f
Name
Last commit
Last update
..
anchoring Loading commit data...
components Loading commit data...
config Loading commit data...
plugin Loading commit data...
test Loading commit data...
util Loading commit data...
.eslintrc.js Loading commit data...
adder.js Loading commit data...
annotation-counts.js Loading commit data...
annotation-sync.js Loading commit data...
delegator.coffee Loading commit data...
features.js Loading commit data...
frame-observer.js Loading commit data...
guest.coffee Loading commit data...
highlighter.js Loading commit data...
host.coffee Loading commit data...
icons.js Loading commit data...
index.js Loading commit data...
pdf-sidebar.js Loading commit data...
pdfjs-rendering-states.js Loading commit data...
plugin.coffee Loading commit data...
range-util.js Loading commit data...
selections.js Loading commit data...
sidebar-trigger.js Loading commit data...
sidebar.coffee Loading commit data...
toolbar.js Loading commit data...