From e1f01cc9a086a2f5d6ca3ade7ec8b157b7204e8c Mon Sep 17 00:00:00 2001 From: Thomas Erbe Date: Fri, 27 Jul 2018 23:05:26 +0100 Subject: [PATCH] Add a check to prevent empty strings beeing passed to our class search string. --- src/core.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core.js b/src/core.js index 584ead6..c36b848 100644 --- a/src/core.js +++ b/src/core.js @@ -65,6 +65,10 @@ const Bulma = { var classes = []; for(var key in this.plugins) { + if(!this.plugins[key].getRootClass()) { + continue; + } + classes.push('.' + this.plugins[key].getRootClass()); }