From 76ca697c087ae2f6a3c1a272c0a70e6c633d23b7 Mon Sep 17 00:00:00 2001 From: Kevin Ball Date: Mon, 26 Jun 2017 12:30:20 -0700 Subject: [PATCH] Fix destroy reference for IE as well --- js/foundation.plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation.plugin.js b/js/foundation.plugin.js index 554a78c92..6e1b8ab57 100644 --- a/js/foundation.plugin.js +++ b/js/foundation.plugin.js @@ -24,7 +24,7 @@ class Plugin { destroy() { this._destroy(); - var pluginName = hyphenate(this.constructor.name); + var pluginName = getPluginName(this); this.$element.removeAttr(`data-${pluginName}`).removeData('zfPlugin') /** * Fires when the plugin has been destroyed. -- 2.47.2