Skip to content

Commit 54eb69a

Browse files
committed
loop fix
1 parent 4b3893e commit 54eb69a

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/js/tooltipster.js

+10-6
Original file line numberDiff line numberDiff line change
@@ -2476,12 +2476,16 @@ $.Tooltipster.prototype = {
24762476

24772477
if (!self.__destroyed) {
24782478

2479-
// no closing delay
2480-
self.option('animationDuration', 0)
2481-
// forced closing
2482-
._close(null, null, true)
2483-
// send event
2484-
._trigger('destroy');
2479+
if(self.__state != 'closed'){
2480+
2481+
// no closing delay
2482+
self.option('animationDuration', 0)
2483+
// force closing
2484+
._close(null, null, true);
2485+
}
2486+
2487+
// send event
2488+
self._trigger('destroy');
24852489

24862490
self.__destroyed = true;
24872491

0 commit comments

Comments
 (0)