mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
FIX: Fake closure actions were not working (replaced in 2.10)
This commit is contained in:
parent
ad5d16af8e
commit
e3a12995c8
@ -5,7 +5,6 @@ import { WidgetClickHook,
|
||||
WidgetDragHook } from 'discourse/widgets/hooks';
|
||||
import { h } from 'virtual-dom';
|
||||
import DecoratorHelper from 'discourse/widgets/decorator-helper';
|
||||
import { TARGET_NAME } from 'discourse/mixins/delegated-actions';
|
||||
|
||||
function emptyContent() { }
|
||||
|
||||
@ -272,7 +271,7 @@ export default class Widget {
|
||||
|
||||
if (target) {
|
||||
// TODO: Use ember closure actions
|
||||
const actions = target[TARGET_NAME] || target.actionHooks || {};
|
||||
const actions = target.actions || target.actionHooks || {};
|
||||
const method = actions[actionName];
|
||||
if (method) {
|
||||
promise = method.call(target, param);
|
||||
|
Loading…
x
Reference in New Issue
Block a user