Skip to content

Commit 2133a21

Browse files
committed
Fixed issue with stopping subscription
1 parent f44d171 commit 2133a21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

paginated_subscription.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Meteor.subscribeWithPagination = function (/*name, arguments, perPage */) {
7070
});
7171

7272
// this will stop the subHandle, and the done autorun
73-
handle.stop = argAutorun.stop;
73+
handle.stop = _.bind(argAutorun.stop, argAutorun);
7474

7575
return handle;
7676
}

smart.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "A paginated subscription; views a subset of a subscription",
44
"homepage": "https://github.com/tmeasday/meteor-paginated-subscription",
55
"author": "Tom Coleman <[email protected]>",
6-
"version": "0.2.1",
6+
"version": "0.2.2",
77
"git": "https://github.com/tmeasday/meteor-paginated-subscription.git",
88
"packages": {
99
}

0 commit comments

Comments
 (0)