Permalink
Browse files

fix "for in"

  • Loading branch information...
1 parent 7a32b11 commit 25a70bbf91120059981d19dac884ab6a0038b847 @skiner87 skiner87 committed May 28, 2014
Showing with 6 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +4 −2 jquery.timepicker.js
  3. +1 −1 jquery.timepicker.min.js
View
@@ -1,3 +1,4 @@
.DS_store
*.sw*
node_modules
+.idea
@@ -376,8 +376,10 @@ requires jQuery 1.7+
if ($.isArray(settings.noneOption)) {
for (var i in settings.noneOption) {
- var noneElement = _generateNoneElement(settings.noneOption[i], settings.useSelect);
- list.append(noneElement);
+ if (parseInt(i, 10) === i){
+ var noneElement = _generateNoneElement(settings.noneOption[i], settings.useSelect);
+ list.append(noneElement);
+ }
}
} else {
var noneElement = _generateNoneElement(settings.noneOption, settings.useSelect);
Oops, something went wrong.

0 comments on commit 25a70bb

Please sign in to comment.