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

Commit fffc646

Browse files
authored
imrpove comment
1 parent 80b29f0 commit fffc646

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ng/directive/ngOptions.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,8 @@ var ngOptionsDirective = ['$compile', '$document', '$parse', function($compile,
452452
var removeEmptyOption = function() {
453453
if (!providedEmptyOption) {
454454
emptyOption.remove();
455-
// Empty nodes with non-rendered ngIf can be comment nodes
455+
// Empty options may be comment nodes if they have been removed by
456+
// transclude directives such as `ngIf`
456457
} else if (emptyOption[0].nodeType === NODE_TYPE_ELEMENT) {
457458
emptyOption.removeAttr('selected');
458459
}

0 commit comments

Comments
 (0)