Skip to content

Commit

Permalink
Make the class name 'dropdownizer' reserved
Browse files Browse the repository at this point in the history
  • Loading branch information
grafluxe committed Nov 22, 2017
1 parent 7fad333 commit f0d992a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Dropdownizer.js
Expand Up @@ -43,6 +43,10 @@ class Dropdownize {
constructor(el) {
this._el = el;

if (el.classList.contains("dropdownizer")) {
throw new Error("The class name 'dropdownizer' is reserved. Please choose a different class name.");
}

this._createElements();
this._bindEvents();
this._convertOptionsToListItems();
Expand Down

0 comments on commit f0d992a

Please sign in to comment.