Chromium Code Reviews| 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); |
| + } |
| + } |
| +} |