Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

if (result == value) to "if (angular.equals(result,value)){" #410

Closed
wants to merge 6 commits into from
Closed

if (result == value) to "if (angular.equals(result,value)){" #410

wants to merge 6 commits into from

Conversation

perymimon
Copy link

without that object from server list not match object on model list

since there is no sense to init $select.selected and 3 line latter override it with 'ngModel.$viewValue'
since if data=[] is empty when we check for match we got view empty
@@ -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)){
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes issue observed when comparing against objects from the server.

@ilanbiala
Copy link

@perymimon please close this or #405, because they seem to be the same.

This was referenced Mar 12, 2015
@dimirc
Copy link
Contributor

dimirc commented Mar 12, 2015

This change will be applied at #748

@dimirc dimirc closed this Mar 12, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants