Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit ef0dc2c

Browse files
committed
WIP: s/modelValue/viewValue in isSelected
1 parent e57c2af commit ef0dc2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng/directive/select.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ var selectDirective = ['$compile', '$parse', function($compile, $parse) {
155155
nullModelCtrl = {$setViewValue: noop};
156156
// jshint maxlen: 100
157157

158-
function isSelected(selectAsFn, trackFn, valueFn, scope, modelVal, locals, selectedSet, mult) {
158+
function isSelected(selectAsFn, trackFn, valueFn, scope, viewValue, locals, selectedSet, mult) {
159159
var compareValueFn;
160160
if (selectAsFn) {
161161
compareValueFn = selectAsFn;
@@ -171,7 +171,7 @@ var selectDirective = ['$compile', '$parse', function($compile, $parse) {
171171
return isDefined(selectedSet.remove(compareValue));
172172
}
173173

174-
return modelVal === compareValue;
174+
return viewValue === compareValue;
175175
};
176176

177177
return {

0 commit comments

Comments
 (0)