Skip to content

Commit efeb0d8

Browse files
committed
minor fix
1 parent 0eb2277 commit efeb0d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/observer/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ p.notify = function () {
217217
*/
218218

219219
p.addVm = function (vm) {
220-
(this.vms = this.vms || []).push(vm)
220+
(this.vms || (this.vms = [])).push(vm)
221221
}
222222

223223
/**

0 commit comments

Comments
 (0)