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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 25585002: Make OptionElement construtor arguments named optional parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index c072a34f742626c17b3fcf5bdc025f6f0b2ef7f0..e9b8e8817ddd66989444d0562369e58f184520bc 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -18507,20 +18507,21 @@ class OptGroupElement extends HtmlElement native "HTMLOptGroupElement" {
@DocsEditable()
String label;
}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2013, 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.
-@DocsEditable()
@DomName('HTMLOptionElement')
class OptionElement extends HtmlElement native "HTMLOptionElement" {
- // To suppress missing implicit constructor warnings.
- factory OptionElement._() { throw new UnsupportedError("Not supported"); }
+ factory OptionElement({String data, String value, bool defaultSelected,
+ bool selected}) {
+ return new OptionElement._(data, value, defaultSelected, selected);
+ }
@DomName('HTMLOptionElement.HTMLOptionElement')
@DocsEditable()
- factory OptionElement([String data, String value, bool defaultSelected, bool selected]) {
+ factory OptionElement._([String data, String value, bool defaultSelected, bool selected]) {
if (selected != null) {
return OptionElement._create_1(data, value, defaultSelected, selected);
}
@@ -18568,6 +18569,7 @@ class OptionElement extends HtmlElement native "HTMLOptionElement" {
@DomName('HTMLOptionElement.value')
@DocsEditable()
String value;
+
}
// 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
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698