diff --git a/src/core.js b/src/core.js index dd3b03f..584ead6 100644 --- a/src/core.js +++ b/src/core.js @@ -57,6 +57,10 @@ const Bulma = { }); }, + /** + * Return a string of classes to search the DOM for + * @returns {string} + */ getPluginClasses() { var classes = []; @@ -67,6 +71,10 @@ const Bulma = { return classes.join(','); }, + /** + * Search our plugins and find one that matches the element + * @returns {Object} + */ findCompatiblePlugin(element) { for(var key in this.plugins) { if(element.classList.contains(this.plugins[key].getRootClass())) {