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

Unified Diff: lib/dom/templates/html/impl/impl_UnknownElement.darttemplate

Issue 10817019: Provide noSuchMethod hook for UnknownElement (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove erroneous static Created 8 years, 5 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 | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/templates/html/impl/impl_UnknownElement.darttemplate
diff --git a/lib/dom/templates/html/impl/impl_UnknownElement.darttemplate b/lib/dom/templates/html/impl/impl_UnknownElement.darttemplate
new file mode 100644
index 0000000000000000000000000000000000000000..a9978c6c655a741d033df796c7c91529f0ae84ae
--- /dev/null
+++ b/lib/dom/templates/html/impl/impl_UnknownElement.darttemplate
@@ -0,0 +1,21 @@
+// 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.
+
+// Temporary dispatch hook to suppoer WebComponents.
+Function dynamicUnknownElementDispatcher;
+
+class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
+$!MEMBERS
+
+ // Hooks to support custom WebComponents.
+ var dartObjectLocalStorage;
Jacob 2012/07/24 01:18:27 rename dartObjectLocalStorage to xtag
+
+ noSuchMethod(String name, List args) {
+ if (dynamicUnknownElementDispatcher == null) {
+ throw new NoSuchMethodException(this, name, args);
+ } else {
+ return dynamicUnknownElementDispatcher(this, name, args);
+ }
+ }
+}
« no previous file with comments | « no previous file | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698