diff --git a/src/selectr.js b/src/selectr.js index 3f866a9..af588d1 100644 --- a/src/selectr.js +++ b/src/selectr.js @@ -1822,7 +1822,7 @@ util.each(o, function(i, opt) { if (util.isInt(opt)) { options.push(this.getOptionByIndex(opt)); - } else if (typeof o === "string") { + } else if (typeof opt === "string") { options.push(this.getOptionByValue(opt)); } }, this);