From 52892efe56b01037a308c426b668a2191961723d Mon Sep 17 00:00:00 2001 From: Abduvakilov Date: Sat, 10 Nov 2018 16:34:40 +0500 Subject: [PATCH] Fix Remove options by array of values Array is referenced instead of element --- src/selectr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);