From: Kevin Ball Date: Mon, 26 Jun 2017 19:30:20 +0000 (-0700) Subject: Fix destroy reference for IE as well X-Git-Tag: v6.4.0~2^2~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10255%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Fix destroy reference for IE as well --- 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.