Skip to content

Commit

Permalink
References #94 - SelectBoxIt is no longer called on elements that are…
Browse files Browse the repository at this point in the history
… not select boxes
  • Loading branch information
gfranko committed Jan 14, 2013
1 parent ac23dfc commit a7f5731
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/javascripts/jquery.selectBoxIt.core.js
Expand Up @@ -96,6 +96,14 @@

var self = this;

// If the element calling SelectBoxIt is not a select box
if(self.element[0].nodeName.toLowerCase() !== "select") {

// Exits the plugin
return;

}

// The original select box DOM element
self.originalElem = self.element[0];

Expand Down

0 comments on commit a7f5731

Please sign in to comment.