Permalink
Browse files

Fix autoinit filter

1 parent 0aee6dc commit 0eb2b1e2205da58430d0c472661be4b0313db4e0 @SullyP SullyP committed on GitHub Feb 15, 2017
Showing with 3 additions and 3 deletions.
  1. +3 −3 jquery.dropdown.js
View
@@ -274,11 +274,11 @@
if (!$this.is("select")) {
$this = $this.find('select');
}
- if ($this.is(options.autoinit)) {
$this.each(function() {
- initElement($(this));
+ if ($(this).is(options.autoinit)) {
+ initElement($(this));
+ }
});
- }
});
}

0 comments on commit 0eb2b1e

Please sign in to comment.