bootstrapx-clickover
bootstrapx-clickover copied to clipboard
When using on, you should also use off
When opening the clickover, you add an event via this.tip().on('click', '[data-dismiss="clickover"]', $.proxy(this.clickery, this));
please also remove it afterwards via this.tip().off('click', '[data-dismiss="clickover"]', $.proxy(this.clickery, this));
otherwise every time i try to close the same clickover, the clickery method is called one more time
cheers Peter
Thanks Peter, that was driving me nuts.
this.tip().off('click', '[data-dismiss="clickover"]', $.proxy(this.clickery, this));
inserted at line 111 sorted the problem for me.
Great fix! This caused the clickery event to be called as many times as the clickover had been opened.
See also this issue: https://github.com/lecar-red/bootstrapx-clickover/issues/31