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

Unified Diff: sdk/lib/html/src/shared_SVGFactoryProviders.dart

Issue 11473013: Adding deprecated flag to deprecated members. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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/src/shared_SVGFactoryProviders.dart
diff --git a/sdk/lib/html/src/shared_SVGFactoryProviders.dart b/sdk/lib/html/src/shared_SVGFactoryProviders.dart
index 0fd92a4e067bc916a460a3b7ceb701172e614555..a6960b8fc1ff8cacde87e29fa19608893cda4a95 100644
--- a/sdk/lib/html/src/shared_SVGFactoryProviders.dart
+++ b/sdk/lib/html/src/shared_SVGFactoryProviders.dart
@@ -23,11 +23,11 @@ class _SvgElementFactoryProvider {
}
parentTag.innerHtml = svg;
- if (parentTag.elements.length == 1) return parentTag.elements.removeLast();
+ if (parentTag.children.length == 1) return parentTag.children.removeLast();
throw new ArgumentError(
- 'SVG had ${parentTag.elements.length} '
- 'top-level elements but 1 expected');
+ 'SVG had ${parentTag.children.length} '
+ 'top-level children but 1 expected');
}
}

Powered by Google App Engine
This is Rietveld 408576698