From 8b318f76a172cc3683c9e0624594ea0fe478be31 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 19 Feb 2016 14:46:29 -0500 Subject: [PATCH] Expose decoration for plugins such as signatures --- app/assets/javascripts/discourse/lib/plugin-api.js.es6 | 4 ++++ 1 file changed, 4 insertions(+) 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;