Browse Source

Pull request #2535: 无JIRA任务 items和value支持自动watch

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

* commit '721abb77da8157732d2c003653b314e173ca9616':
  feature: items和value支持自动watch
  feature: items和value支持自动watch
es6
guy 3 years ago
parent
commit
50b4d71fd3
  1. 4
      src/core/4.widget.js

4
src/core/4.widget.js

@ -241,7 +241,9 @@
}, (handler && function (v) {
handler.call(self, self, v);
}) || BI.emptyFn, BI.extend({deep: true}, options));
this._watchers.push(watcher);
this._watchers.push(function unwatchFn () {
watcher.teardown();
});
return watcher.value;
} else {
return getter();

Loading…
Cancel
Save