Browse Source

Pull request #2191: 无JIRA任务 整理一下

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

* commit 'ee07575804c5bb05ff20bfbca645caa1fed0363e':
  支持自动watch
es6
guy 3 years ago
parent
commit
da29efb466
  1. 4
      src/core/4.widget.js

4
src/core/4.widget.js

@ -203,7 +203,9 @@
var self = this; var self = this;
if (_global.Fix) { if (_global.Fix) {
this._watchers = this._watchers || []; this._watchers = this._watchers || [];
var watcher = new Fix.Watcher(null, BI.bind(getter, this), (handler && function () { var watcher = new Fix.Watcher(null, function () {
return getter.call(self, self);
}, (handler && function () {
handler.call(self, self); handler.call(self, self);
}) || BI.emptyFn, options); }) || BI.emptyFn, options);
this._watchers.push(watcher); this._watchers.push(watcher);

Loading…
Cancel
Save