Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1297)

Unified Diff: sdk/lib/html/templates/html/dart2js/impl_SelectElement.darttemplate

Issue 11416294: Changing template file names to key off of the DOM name rather than Dart name. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/html/templates/html/dart2js/impl_SelectElement.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/impl_SelectElement.darttemplate b/sdk/lib/html/templates/html/dart2js/impl_SelectElement.darttemplate
deleted file mode 100644
index f424a196ebb21ffe2c0f8f1771b6fed041aaff04..0000000000000000000000000000000000000000
--- a/sdk/lib/html/templates/html/dart2js/impl_SelectElement.darttemplate
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-part of html;
-
-/// @domName $DOMNAME
-class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
-$!MEMBERS
-
- // Override default options, since IE returns SelectElement itself and it
- // does not operate as a List.
- List<OptionElement> get options {
- return this.elements.filter((e) => e is OptionElement);
- }
-
- List<OptionElement> get selectedOptions {
- // IE does not change the selected flag for single-selection items.
- if (this.multiple) {
- return this.options.filter((o) => o.selected);
- } else {
- return [this.options[this.selectedIndex]];
- }
- }
-}

Powered by Google App Engine
This is Rietveld 408576698