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

Unified Diff: client/html/src/SVGElementWrappingImplementation.dart

Issue 9315061: Specify the types for Element.classes, Element.elements and Node.nodes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed place where Collection<E> was treated as List<E> Created 8 years, 11 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 | « client/html/src/Node.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/html/src/SVGElementWrappingImplementation.dart
diff --git a/client/html/src/SVGElementWrappingImplementation.dart b/client/html/src/SVGElementWrappingImplementation.dart
index 2e5861792a5473be3760531d45402162bd1e84f9..a81b624baacc1a1b6a5a1b5bdf1819efd0108d4c 100644
--- a/client/html/src/SVGElementWrappingImplementation.dart
+++ b/client/html/src/SVGElementWrappingImplementation.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// 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.
@@ -29,7 +29,7 @@ class SVGElementWrappingImplementation extends ElementWrappingImplementation imp
}
parentTag.innerHTML = svg;
- if (parentTag.elements.length == 1) return parentTag.elements[0];
+ if (parentTag.elements.length == 1) return parentTag.elements.iterator().next();
nweiz 2012/02/02 19:01:11 Line length. Why doesn't [0] work? Or #first?
zundel 2012/03/06 20:16:44 Because I didn't really fix the problem. I've fix
throw new IllegalArgumentException('SVG had ${parentTag.elements.length} ' +
'top-level elements but 1 expected');
« no previous file with comments | « client/html/src/Node.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698