Skip to content

Commit cbdd442

Browse files
MervynFangyyx990803
authored andcommitted
support RxJS 5.0 unsubscribe api (#10)
1 parent 79d4f46 commit cbdd442

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

vue-rx.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
beforeDestroy: function () {
88
if (this._rxHandles) {
99
this._rxHandles.forEach(function (handle) {
10-
handle.dispose()
10+
if (handle.dispose) {
11+
handle.dispose()
12+
} else if (handle.unsubscribe) {
13+
handle.unsubscribe()
14+
}
1115
})
1216
}
1317
}

0 commit comments

Comments
 (0)