From 8fe36f759a0b4e22379ca2300953098688c5dcf9 Mon Sep 17 00:00:00 2001 From: perymimon Date: Sun, 16 Nov 2014 17:26:43 +0200 Subject: [PATCH] Update select.js --- src/select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/select.js b/src/select.js index 95ba2bbb9..478f6bc43 100644 --- a/src/select.js +++ b/src/select.js @@ -662,7 +662,7 @@ for (var p = list.length - 1; p >= 0; p--) { locals[$select.parserResult.itemName] = list[p]; result = $select.parserResult.modelMapper(scope, locals); - if (result == value){ + if (angular.equals(result,value)){/*very important!, witout that init object that came with the model not match obkects in list*/ resultMultiple.unshift(list[p]); return true; }