From 31de28889c788ac3c0131fae1b63ea95667cfc63 Mon Sep 17 00:00:00 2001 From: Daniel Ruf Date: Sun, 6 Oct 2019 12:09:56 +0200 Subject: [PATCH] fix: use the className field to prevent issues with function name mangling - closes #11743 --- js/foundation.core.plugin.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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}; -- 2.47.2