|
|
@ -474,13 +474,13 @@ export function createWidget(item, options, context, lazy) { |
|
|
|
if (!w.listeners || isArray(w.listeners)) { |
|
|
|
if (!w.listeners || isArray(w.listeners)) { |
|
|
|
w.listeners = (w.listeners || []).concat([{ |
|
|
|
w.listeners = (w.listeners || []).concat([{ |
|
|
|
eventName: Events.MOUNT, |
|
|
|
eventName: Events.MOUNT, |
|
|
|
action: () => { |
|
|
|
action: function () { |
|
|
|
Plugin.getObject(elType, this); |
|
|
|
Plugin.getObject(elType, this); |
|
|
|
}, |
|
|
|
}, |
|
|
|
}]); |
|
|
|
}]); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
w.listeners[Events.MOUNT] = [ |
|
|
|
w.listeners[Events.MOUNT] = [ |
|
|
|
() => { |
|
|
|
function() { |
|
|
|
Plugin.getObject(elType, this); |
|
|
|
Plugin.getObject(elType, this); |
|
|
|
} |
|
|
|
} |
|
|
|
].concat(w.listeners[Events.MOUNT] || []); |
|
|
|
].concat(w.listeners[Events.MOUNT] || []); |
|
|
|