Skip to content

Commit 472631c

Browse files
btjkchrisvfritz
authored andcommitted
Elaborate on what types of handlers are allowed in Array watchers (#1898)
1 parent 8f1cad8 commit 472631c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/v2/api/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,8 +645,12 @@ type: api
645645
immediate: true
646646
},
647647
e: [
648-
function handle1 (val, oldVal) { /* ... */ },
649-
function handle2 (val, oldVal) { /* ... */ }
648+
'handle1',
649+
function handle2 (val, oldVal) { /* ... */ },
650+
{
651+
handler: function handle3 (val, oldVal) { /* ... */ },
652+
/* ... */
653+
}
650654
],
651655
// watch vm.e.f's value: {g: 5}
652656
'e.f': function (val, oldVal) { /* ... */ }

0 commit comments

Comments
 (0)