Permalink
Browse files

Merge pull request #58 from SullyP/patch-1

Fix autoinit filter
  • Loading branch information...
2 parents 73b47e4 + 0eb2b1e commit c22c969f000fa59d1c7b97023320ec835bbb3231 @FezVrasta 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 c22c969

Please sign in to comment.