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