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

Unified Diff: pkg/custom_element/lib/custom_element.dart

Issue 23969002: Adjust CustomElement as properties again. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/custom_element/lib/custom_element.dart
diff --git a/pkg/custom_element/lib/custom_element.dart b/pkg/custom_element/lib/custom_element.dart
index 202a0eedfc425265d60703dd9be306e6f6f3404a..2a13fda947514dc3b31f94e4d2ab17c72c6dcc9e 100644
--- a/pkg/custom_element/lib/custom_element.dart
+++ b/pkg/custom_element/lib/custom_element.dart
@@ -197,6 +197,29 @@ class CustomElement implements Element {
BindingDelegate get bindingDelegate => host.bindingDelegate;
set bindingDelegate(BindingDelegate value) { host.bindingDelegate = value; }
+ // TODO(efortuna): Update these when we decide what to do with these
+ // properties.
+ @deprecated
+ String getAttribute(String name) =>
+ host.getAttribute(name);
+
+ @deprecated
+ String getAttributeNS(String namespaceUri, String localName) =>
+ host.getAttributeNS(namespaceUri, localName);
+
+ @deprecated
+ String setAttributeNS(
+ String namespaceUri, String localName, String value) {
+ host.setAttributeNS(namespaceUri, localName, value);
+ }
+
+ @deprecated
+ void setAttribute(String name, String value) =>
+ host.setAttribute(name, value);
+
+ @deprecated
+ List<Node> get childNodes => host.childNodes;
+
// TODO(jmesserly): this forwarding is temporary until Dart supports
// subclassing Elements.
// TODO(jmesserly): we were missing the setter for title, are other things
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698