|
@@ -20,7 +20,6 @@ var uid = 0
|
|
|
* - {Boolean} user
|
|
* - {Boolean} user
|
|
|
* - {Boolean} sync
|
|
* - {Boolean} sync
|
|
|
* - {Boolean} lazy
|
|
* - {Boolean} lazy
|
|
|
- * - {Boolean} refOnly
|
|
|
|
|
* - {Function} [preProcess]
|
|
* - {Function} [preProcess]
|
|
|
* - {Function} [postProcess]
|
|
* - {Function} [postProcess]
|
|
|
* @constructor
|
|
* @constructor
|
|
@@ -180,7 +179,6 @@ Watcher.prototype.set = function (value) {
|
|
|
|
|
|
|
|
Watcher.prototype.beforeGet = function () {
|
|
Watcher.prototype.beforeGet = function () {
|
|
|
Dep.target = this
|
|
Dep.target = this
|
|
|
- Dep.refOnly = !!this.refOnly
|
|
|
|
|
this.newDeps = Object.create(null)
|
|
this.newDeps = Object.create(null)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -190,7 +188,6 @@ Watcher.prototype.beforeGet = function () {
|
|
|
|
|
|
|
|
Watcher.prototype.afterGet = function () {
|
|
Watcher.prototype.afterGet = function () {
|
|
|
Dep.target = null
|
|
Dep.target = null
|
|
|
- Dep.refOnly = false
|
|
|
|
|
var ids = Object.keys(this.deps)
|
|
var ids = Object.keys(this.deps)
|
|
|
var i = ids.length
|
|
var i = ids.length
|
|
|
while (i--) {
|
|
while (i--) {
|