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

Commit 5a434eb

Browse files
jbedardNarretz
authored andcommitted
style(ngModel,ngOptions): make use of declared but unused variables
1 parent 318de4d commit 5a434eb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ng/directive/ngModel.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
265265
};
266266
ngModelSet = function($scope, newValue) {
267267
if (isFunction(parsedNgModel($scope))) {
268-
invokeModelSetter($scope, {$$$p: ctrl.$modelValue});
268+
invokeModelSetter($scope, {$$$p: newValue});
269269
} else {
270-
parsedNgModelAssign($scope, ctrl.$modelValue);
270+
parsedNgModelAssign($scope, newValue);
271271
}
272272
};
273273
} else if (!parsedNgModel.assign) {

src/ng/directive/ngOptions.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,8 @@ var ngOptionsDirective = ['$compile', '$parse', function($compile, $parse) {
342342
var key = (optionValues === optionValuesKeys) ? index : optionValuesKeys[index];
343343
var value = optionValues[key];
344344

345-
var locals = getLocals(optionValues[key], key);
346-
var selectValue = getTrackByValueFn(optionValues[key], locals);
345+
var locals = getLocals(value, key);
346+
var selectValue = getTrackByValueFn(value, locals);
347347
watchedArray.push(selectValue);
348348

349349
// Only need to watch the displayFn if there is a specific label expression

0 commit comments

Comments
 (0)