From c299342a88b0725290bd0b5af2e904d8eab15be4 Mon Sep 17 00:00:00 2001 From: moloko Date: Thu, 23 Nov 2017 18:31:43 +0000 Subject: [PATCH] remove the inview listener properly, fixes https://github.com/adaptlearning/adapt_framework/issues/1877 --- js/adapt-contrib-hotgraphic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/adapt-contrib-hotgraphic.js b/js/adapt-contrib-hotgraphic.js index ae88c47..3f42499 100644 --- a/js/adapt-contrib-hotgraphic.js +++ b/js/adapt-contrib-hotgraphic.js @@ -85,7 +85,7 @@ define(function(require) { } if (this._isVisibleTop && this._isVisibleBottom) { - this.$('.component-inner').off('inview'); + this.$('.component-widget').off('inview'); this.setCompletionStatus(); } }