superfish icon indicating copy to clipboard operation
superfish copied to clipboard

Destroy method not working sfOptions data always returns null

Open wpexplorer opened this issue 8 years ago • 0 comments

Current destroy method code:

var $this = $(this),
o = $this.data('sfOptions'),
$hasPopUp;
if (!o) {
 return false;
}

I see the sfOptions data added to the DOM in the init method, but in the destroy method it always return empty so the destroy method returns false.

Thanks for any help!

wpexplorer avatar May 18 '16 21:05 wpexplorer