Browse Source

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

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

* commit '6d5d5f8d8badc9aff7b4a74ef8bac7b66826c12a':
  支持自动watch
es6
guy 3 years ago
parent
commit
344cac280b
  1. 4
      src/core/4.widget.js

4
src/core/4.widget.js

@ -200,9 +200,9 @@
},
__watch: function (getter, handler, options) {
if (Fix.Model.target) {
if (_global.Fix) {
this._watchers = this._watchers || [];
var watcher = new Fix.Watcher(Fix.Model.target, BI.bind(getter, this), (handler && BI.bind(handler, this)) || BI.emptyFn, options);
var watcher = new Fix.Watcher(null, BI.bind(getter, this), (handler && BI.bind(handler, this)) || BI.emptyFn, options);
this._watchers.push(watcher);
return watcher.value;
} else {

Loading…
Cancel
Save