Sticky-Anything icon indicating copy to clipboard operation
Sticky-Anything copied to clipboard

retain timeoutId from setInterval() in object, provide unstick() function

Open rushimusmaximus opened this issue 8 years ago • 0 comments

Store the timeoutId from setInterval() inside the object so it can be used for clearTimeout(). As it is right now if the element being watched is removed from the DOM then errors start piling up quickly.

rushimusmaximus avatar Feb 16 '17 22:02 rushimusmaximus