Expose decoration for plugins such as signatures

This commit is contained in:
Robin Ward 2016-02-19 14:46:29 -05:00
parent f2f49a5e96
commit 8b318f76a1

View file

@ -113,6 +113,10 @@ class PluginApi {
});
}
decorateWidget(name, fn) {
decorateWidget(name, fn);
}
attachWidgetAction(widget, actionName, fn) {
const widgetClass = this.container.lookupFactory(`widget:${widget}`);
widgetClass.prototype[actionName] = fn;