From: Daniel Ruf Date: Sun, 6 Oct 2019 10:09:56 +0000 (+0200) Subject: fix: use the className field to prevent issues with function name mangling - closes... X-Git-Tag: v6.6.2^2~40^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11835%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git fix: use the className field to prevent issues with function name mangling - closes #11743 --- diff --git a/js/foundation.core.plugin.js b/js/foundation.core.plugin.js index 211e7b5e7..884d11fb0 100644 --- a/js/foundation.core.plugin.js +++ b/js/foundation.core.plugin.js @@ -44,11 +44,7 @@ function hyphenate(str) { } function getPluginName(obj) { - if(typeof(obj.constructor.name) !== 'undefined') { - return hyphenate(obj.constructor.name); - } else { - return hyphenate(obj.className); - } + return hyphenate(obj.className); } export {Plugin};