Skip to content

Commit

Permalink
feat(plugin): add getPlugin to plugin interface. Fixes #582
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Sep 25, 2016
1 parent 49bf9b7 commit d45a2b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugins/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,10 @@ export function Plugin(config) {
return !!getPlugin(config.pluginRef);
};

cls['getPlugin'] = function() {
return getPlugin(config.pluginRef);
};

return cls;
};
}
Expand Down

0 comments on commit d45a2b5

Please sign in to comment.