Skip to content

Commit 66fe206

Browse files
authored
Clean this.$triggerNext on unbind
Reset variable this.$triggerNext on unbind. This prevent button trigger not work when ias is reinitialized and trigger button already shown.
1 parent 97ba99a commit 66fe206

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/extension/trigger.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ IASTriggerExtension.prototype.bind = function(ias) {
105105
* @param {object} ias
106106
*/
107107
IASTriggerExtension.prototype.unbind = function(ias) {
108+
this.$triggerNext = null;
108109
ias.off('next', this.showTriggerNext);
109110
ias.off('rendered', this.onRendered);
110111

0 commit comments

Comments
 (0)