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

Commit 52bf2bd

Browse files
committed
refactor(ngOptions): access copy() directly (angular.copy --> copy)
1 parent 32aa7e7 commit 52bf2bd

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
@@ -397,7 +397,7 @@ var ngOptionsDirective = ['$compile', '$document', '$parse', function($compile,
397397
getViewValueFromOption: function(option) {
398398
// If the viewValue could be an object that may be mutated by the application,
399399
// we need to make a copy and not return the reference to the value on the option.
400-
return trackBy ? angular.copy(option.viewValue) : option.viewValue;
400+
return trackBy ? copy(option.viewValue) : option.viewValue;
401401
}
402402
};
403403
}

0 commit comments

Comments
 (0)