Skip to content

Commit

Permalink
Add doc blocks to getPluginClasses and findCompatiblePlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Erbe committed Jul 27, 2018
1 parent 7aece2e commit 27e7661
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ const Bulma = {
});
},

/**
* Return a string of classes to search the DOM for
* @returns {string}
*/
getPluginClasses() {
var classes = [];

Expand All @@ -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())) {
Expand Down

0 comments on commit 27e7661

Please # to comment.