summaryrefslogtreecommitdiffstats
path: root/client/components/mixins
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2016-01-03 23:22:08 +0100
committerMaxime Quandalle <maxime@quandalle.com>2016-01-03 23:40:08 +0100
commit46747b01fb3eb42901518a3fdb8a5f6d823465eb (patch)
tree73c203c7c47f6a74c4f4d7aa20854b2d401d2d2f /client/components/mixins
parent8c01d51577e3748d2c1b38b247d6c2cc4e7dbb08 (diff)
downloadwekan-46747b01fb3eb42901518a3fdb8a5f6d823465eb.tar.gz
wekan-46747b01fb3eb42901518a3fdb8a5f6d823465eb.tar.bz2
wekan-46747b01fb3eb42901518a3fdb8a5f6d823465eb.zip
Fix card infinite scrolling on card activities
I imagine blaze-component changed their Mixins API since I written this code. We need some tests to avoid this kind of regressions when updating dependencies! Fixes #420
Diffstat (limited to 'client/components/mixins')
-rw-r--r--client/components/mixins/infiniteScrolling.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/client/components/mixins/infiniteScrolling.js b/client/components/mixins/infiniteScrolling.js
index 0afb33f9..eb02b76f 100644
--- a/client/components/mixins/infiniteScrolling.js
+++ b/client/components/mixins/infiniteScrolling.js
@@ -17,11 +17,6 @@ Mixins.InfiniteScrolling = BlazeComponent.extendComponent({
this._nextPeak = Infinity;
},
- // To be overwritten by consumers of this mixin
- reachNextPeak() {
-
- },
-
events() {
return [{
scroll(evt) {
@@ -29,7 +24,7 @@ Mixins.InfiniteScrolling = BlazeComponent.extendComponent({
let altitude = domElement.scrollTop + domElement.offsetHeight;
altitude += peakAnticipation;
if (altitude >= this.callFirstWith(null, 'getNextPeak')) {
- this.callFirstWith(null, 'reachNextPeak');
+ this.mixinParent().callFirstWith(null, 'reachNextPeak');
}
},
}];