diff --git a/app/assets/javascripts/discourse/lib/plugin-api.js.es6 b/app/assets/javascripts/discourse/lib/plugin-api.js.es6 index 506cc0ffd..444e24fb9 100644 --- a/app/assets/javascripts/discourse/lib/plugin-api.js.es6 +++ b/app/assets/javascripts/discourse/lib/plugin-api.js.es6 @@ -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;