From 02e05605c7b3c3de9443685db329a08ace2551a2 Mon Sep 17 00:00:00 2001 From: Chris Oyler Date: Mon, 1 Feb 2016 14:08:07 -0800 Subject: [PATCH] updates reInit method to hyphenate a plugin class name if they are passed as CamelCased strings --- js/foundation.core.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/foundation.core.js b/js/foundation.core.js index 8154355ec..978573d02 100644 --- a/js/foundation.core.js +++ b/js/foundation.core.js @@ -107,10 +107,12 @@ var Foundation = { fns = { 'object': function(plgs){ plgs.forEach(function(p){ + p = hyphenate(p); $('[data-'+ p +']').foundation('_init'); }); }, 'string': function(){ + plugins = hyphenate(plugins); $('[data-'+ plugins +']').foundation('_init'); }, 'undefined': function(){ -- 2.47.2