|
|
|
@ -471,12 +471,18 @@
|
|
|
|
|
var wType = (w.type && w.type.xtype) || w.type; |
|
|
|
|
if (wType === elType) { |
|
|
|
|
if (BI.Plugin.hasObject(elType)) { |
|
|
|
|
w.listeners = (w.listeners || []).concat([{ |
|
|
|
|
eventName: BI.Events.MOUNT, |
|
|
|
|
action: function () { |
|
|
|
|
if (!w.listeners || BI.isArray(w.listeners)) { |
|
|
|
|
w.listeners = (w.listeners || []).concat([{ |
|
|
|
|
eventName: BI.Events.MOUNT, |
|
|
|
|
action: function () { |
|
|
|
|
BI.Plugin.getObject(elType, this); |
|
|
|
|
} |
|
|
|
|
}]); |
|
|
|
|
} else { |
|
|
|
|
w.listeners[BI.Events.MOUNT] = function () { |
|
|
|
|
BI.Plugin.getObject(elType, this); |
|
|
|
|
} |
|
|
|
|
}]); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return createWidget(w, context, lazy); |
|
|
|
|
} |
|
|
|
|