• Robert Knight's avatar
    Simplify annotator plugin initialization · d17e2546
    Robert Knight authored
    Previously plugin initialization happened in several steps:
    
     1. The plugin constructor was called with the root element and config
        options
     2. The plugin's `annotator` property was set to a reference to the
        `Guest` instance for the current document
     3. The plugin's `pluginInit` method was called
    
    There was no real need for this multi-step process. This commit
    simplifies it by removing the `pluginInit` method and passing the guest
    reference as a third argument to the constructor in step 1.
    
    As a result, the `Plugin` base class is no longer needed. Plugins now
    extend the parent `Delegator` class instead.
    d17e2546
Name
Last commit
Last update
..
test Loading commit data...
bucket-bar-js.js Loading commit data...
bucket-bar.coffee Loading commit data...
cross-frame.js Loading commit data...
document.js Loading commit data...
pdf-metadata.js Loading commit data...
pdf.js Loading commit data...