Skip to content

Commit a0b1a38

Browse files
committed
return removed element in $remove (fix vuejs#990)
1 parent 2d6e56b commit a0b1a38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/observer/array.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ _.define(
8484
index = _.indexOf(this, index)
8585
}
8686
if (index > -1) {
87-
this.splice(index, 1)
87+
return this.splice(index, 1)
8888
}
8989
}
9090
)
9191

92-
module.exports = arrayMethods
92+
module.exports = arrayMethods

0 commit comments

Comments
 (0)