]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix destroy reference for IE as well 10255/head
authorKevin Ball <kmball11@gmail.com>
Mon, 26 Jun 2017 19:30:20 +0000 (12:30 -0700)
committerKevin Ball <kmball11@gmail.com>
Mon, 26 Jun 2017 19:30:20 +0000 (12:30 -0700)
js/foundation.plugin.js

index 554a78c928feb29bfa693c28530b2947fa17f352..6e1b8ab57d94cfad3c282a6b07f55ef2a712ac39 100644 (file)
@@ -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.