Browse Source

无JIRA任务 event名称没绑定到对象上

es6
fay 4 years ago
parent
commit
73723ff68e
  1. 9
      src/widget/datepane/datepane.js

9
src/widget/datepane/datepane.js

@ -44,7 +44,7 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, {
default: default:
break; break;
} }
self.fireEvent("EVENT_CHANGE"); self.fireEvent(BI.DynamicDatePane.EVENT_CHANGE);
} }
}], }],
ref: function () { ref: function () {
@ -67,7 +67,7 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, {
listeners: [{ listeners: [{
eventName: "EVENT_CHANGE", eventName: "EVENT_CHANGE",
action: function () { action: function () {
self.fireEvent("EVENT_CHANGE"); self.fireEvent(BI.DynamicDatePane.EVENT_CHANGE);
} }
}], }],
ref: function () { ref: function () {
@ -82,7 +82,7 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, {
eventName: "EVENT_CHANGE", eventName: "EVENT_CHANGE",
action: function () { action: function () {
if(self._checkValue(self.getValue())) { if(self._checkValue(self.getValue())) {
self.fireEvent("EVENT_CHANGE"); self.fireEvent(BI.DynamicDatePane.EVENT_CHANGE);
} }
} }
}], }],
@ -146,6 +146,9 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, {
}; };
} }
}); });
BI.DynamicDatePane.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.dynamic_date_pane", BI.DynamicDatePane); BI.shortcut("bi.dynamic_date_pane", BI.DynamicDatePane);
BI.extend(BI.DynamicDatePane, { BI.extend(BI.DynamicDatePane, {

Loading…
Cancel
Save