update
parent
b5a9ef0695
commit
98b21a64ec
|
@ -307,7 +307,6 @@ function observeObject(source, options) {
|
||||||
$vmodel[name] = source[name]
|
$vmodel[name] = source[name]
|
||||||
})
|
})
|
||||||
|
|
||||||
/* jshint ignore:start */
|
|
||||||
// hideProperty($vmodel, '$ups', null)
|
// hideProperty($vmodel, '$ups', null)
|
||||||
hideProperty($vmodel, '$id', 'anonymous')
|
hideProperty($vmodel, '$id', 'anonymous')
|
||||||
hideProperty($vmodel, '$up', old ? old.$up : null)
|
hideProperty($vmodel, '$up', old ? old.$up : null)
|
||||||
|
@ -343,9 +342,7 @@ function observeObject(source, options) {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
/* jshint ignore:end */
|
|
||||||
|
|
||||||
//必须设置了$active,$events
|
|
||||||
simple.forEach(function(name) {
|
simple.forEach(function(name) {
|
||||||
var oldVal = old && old[name]
|
var oldVal = old && old[name]
|
||||||
var val = ($vmodel[name] = state[name])
|
var val = ($vmodel[name] = state[name])
|
||||||
|
@ -373,9 +370,11 @@ function observeObject(source, options) {
|
||||||
|
|
||||||
$vmodel.$active = true
|
$vmodel.$active = true
|
||||||
|
|
||||||
|
if ($vmodel.$id !== 'anonymous') {
|
||||||
if (old && old.$up && old.$up.$children) {
|
if (old && old.$up && old.$up.$children) {
|
||||||
old.$up.$children.push($vmodel)
|
old.$up.$children.push($vmodel)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $vmodel
|
return $vmodel
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue