We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5100f3e commit f2f66a9Copy full SHA for f2f66a9
src/directives/repeat.js
@@ -48,7 +48,9 @@ var mutationHandlers = {
48
index = m.args[0],
49
removed = m.args[1],
50
added = m.args.length - 2,
51
- removedVMs = this.vms.splice(index, removed)
+ removedVMs = removed === undefined
52
+ ? this.vms.splice(index)
53
+ : this.vms.splice(index, removed)
54
for (i = 0, l = removedVMs.length; i < l; i++) {
55
removedVMs[i].$destroy()
56
this.updateObject(removedVMs[i].$data, -1)
0 commit comments