Skip to content

Commit

Permalink
fix update in arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Jun 21, 2017
1 parent a264029 commit afee11f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion y-element.html
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,11 @@
}
})
} else if (action.startsWith('#')) {
debugger // ignore this? we already handle splices
var index = Number(action.slice(1))
type.delete(index, 1)
type.insert(index, [getConvertType(change.value)])
var t = type.get(index)
fillType(t, change.value)
} else {
var val = change.value
type.set(action, getConvertType(val))
Expand Down

0 comments on commit afee11f

Please sign in to comment.