|
|
@ -200,9 +200,9 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
__watch: function (getter, handler, options) { |
|
|
|
__watch: function (getter, handler, options) { |
|
|
|
if (Fix.Model.target) { |
|
|
|
if (_global.Fix) { |
|
|
|
this._watchers = this._watchers || []; |
|
|
|
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); |
|
|
|
this._watchers.push(watcher); |
|
|
|
return watcher.value; |
|
|
|
return watcher.value; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|