| Index: tools/dom/templates/html/impl/impl_HTMLSelectElement.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_HTMLSelectElement.darttemplate b/tools/dom/templates/html/impl/impl_HTMLSelectElement.darttemplate
|
| index de3a920f562787388980586701c3216cb90e718f..3f2cc578b625e7c8919f27916a961cc63b733a01 100644
|
| --- a/tools/dom/templates/html/impl/impl_HTMLSelectElement.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_HTMLSelectElement.darttemplate
|
| @@ -11,14 +11,16 @@ $!MEMBERS
|
| // does not operate as a List.
|
| List<OptionElement> get options {
|
| var options = this.children.where((e) => e is OptionElement).toList();
|
| - return new ListView(options, 0, options.length);
|
| + // TODO(floitsch): find better way to create a read-only list view.
|
| + return options.take(options.length);
|
| }
|
|
|
| List<OptionElement> get selectedOptions {
|
| // IE does not change the selected flag for single-selection items.
|
| if (this.multiple) {
|
| var options = this.options.where((o) => o.selected).toList();
|
| - return new ListView(options, 0, options.length);
|
| + // TODO(floitsch): find better way to create a read-only list view.
|
| + return options.take(options.length);
|
| } else {
|
| return [this.options[this.selectedIndex]];
|
| }
|
|
|