Browse Source

Pull request #1438: 无JIRA任务 event名称没绑定到对象上

Merge in VISUAL/fineui from ~FAY/fineui:master to master

* commit '73723ff68efed35a6dd8fad1651ebb424dcd44c4':
  无JIRA任务 event名称没绑定到对象上
es6
fay 4 years ago
parent
commit
dcf59c0e54
  1. 9
      src/widget/datepane/datepane.js

9
src/widget/datepane/datepane.js

@ -44,7 +44,7 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, {
default:
break;
}
self.fireEvent("EVENT_CHANGE");
self.fireEvent(BI.DynamicDatePane.EVENT_CHANGE);
}
}],
ref: function () {
@ -67,7 +67,7 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, {
listeners: [{
eventName: "EVENT_CHANGE",
action: function () {
self.fireEvent("EVENT_CHANGE");
self.fireEvent(BI.DynamicDatePane.EVENT_CHANGE);
}
}],
ref: function () {
@ -82,7 +82,7 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, {
eventName: "EVENT_CHANGE",
action: function () {
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.extend(BI.DynamicDatePane, {

Loading…
Cancel
Save