Skip to content

Commit ef81003

Browse files
gkalpakpetebacondarwin
authored andcommitted
refactor(ngOptions): access copy() directly (angular.copy --> copy)
1 parent 166a861 commit ef81003

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/directive/ngOptions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ var ngOptionsDirective = ['$compile', '$document', '$parse', function($compile,
399399
getViewValueFromOption: function(option) {
400400
// If the viewValue could be an object that may be mutated by the application,
401401
// we need to make a copy and not return the reference to the value on the option.
402-
return trackBy ? angular.copy(option.viewValue) : option.viewValue;
402+
return trackBy ? copy(option.viewValue) : option.viewValue;
403403
}
404404
};
405405
}

0 commit comments

Comments
 (0)