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

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

Issue 11035032: Fixing SelectElement.selectedOptions to work on all platforms. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Moved selectelement.darttemplate. Created 8 years, 2 months 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
« no previous file with comments | « lib/html/scripts/systemhtml.py ('k') | tests/html/selectelement_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/templates/html/dart2js/impl_SelectElement.darttemplate
diff --git a/lib/html/templates/html/dart2js/impl_CanvasElement.darttemplate b/lib/html/templates/html/dart2js/impl_SelectElement.darttemplate
similarity index 73%
copy from lib/html/templates/html/dart2js/impl_CanvasElement.darttemplate
copy to lib/html/templates/html/dart2js/impl_SelectElement.darttemplate
index 1c790c0afe67b39f424f3d8f972bc8965ef0bedd..59635205dd7ce306ca1326e5ab8fa1a0a17f014f 100644
--- a/lib/html/templates/html/dart2js/impl_CanvasElement.darttemplate
+++ b/lib/html/templates/html/dart2js/impl_SelectElement.darttemplate
@@ -5,5 +5,7 @@
class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
$!MEMBERS
- _CanvasRenderingContext2DImpl get context2d => getContext('2d');
+ List<OptionElement> get selectedOptions() {
+ return this.options.filter((o) => o.selected);
+ }
}
« no previous file with comments | « lib/html/scripts/systemhtml.py ('k') | tests/html/selectelement_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698