优化数组的_.$ups属性
parent
e8b9969f48
commit
ebb368ef50
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "anot",
|
"name": "anot",
|
||||||
"version": "1.0.2",
|
"version": "1.0.3",
|
||||||
"description": "Anot - 迷你mvvm框架",
|
"description": "Anot - 迷你mvvm框架",
|
||||||
"main": "dist/anot.js",
|
"main": "dist/anot.js",
|
||||||
"files": [
|
"files": [
|
||||||
|
|
|
@ -125,7 +125,7 @@ Anot.directive('for', {
|
||||||
var valueItem = value[i]
|
var valueItem = value[i]
|
||||||
proxy[param] = valueItem //index
|
proxy[param] = valueItem //index
|
||||||
if (Object(valueItem) === valueItem) {
|
if (Object(valueItem) === valueItem) {
|
||||||
valueItem.$ups = valueItem.$ups || {}
|
hideProperty(valueItem, '$ups', valueItem.$ups || {})
|
||||||
valueItem.$ups[param] = proxy
|
valueItem.$ups[param] = proxy
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Reference in New Issue