• 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
..
annotator Loading commit data...
boot Loading commit data...
images/icons Loading commit data...
shared Loading commit data...
sidebar Loading commit data...
styles Loading commit data...
test-util Loading commit data...
types Loading commit data...
.eslintrc Loading commit data...
karma.config.js Loading commit data...
tsconfig.json Loading commit data...