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

Unified Diff: sdk/lib/html/templates/html/impl/impl_Element.darttemplate

Issue 11696004: Removing noSuchMethod from Element. (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
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tests/html/html.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/templates/html/impl/impl_Element.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_Element.darttemplate b/sdk/lib/html/templates/html/impl/impl_Element.darttemplate
index fc2bcfb2b97b10c5e790c3be901f5586e85d8d67..f05eb15fdd55cc6383adf13ee8d3536d9049509a 100644
--- a/sdk/lib/html/templates/html/impl/impl_Element.darttemplate
+++ b/sdk/lib/html/templates/html/impl/impl_Element.darttemplate
@@ -614,25 +614,6 @@ $if DART2JS
$endif
var xtag;
-$if DARTIUM
- noSuchMethod(InvocationMirror invocation) {
- if (dynamicUnknownElementDispatcher == null) {
- throw new NoSuchMethodError(this, invocation.memberName,
- invocation.positionalArguments,
- invocation.namedArguments);
- } else {
- String hackedName = invocation.memberName;
- if (invocation.isGetter) hackedName = "get:$hackedName";
- if (invocation.isSetter) hackedName = "set:$hackedName";
- return dynamicUnknownElementDispatcher(this,
- hackedName,
- invocation.positionalArguments);
- }
- }
-$else
- // TODO(vsm): Implement noSuchMethod or similar for dart2js.
-$endif
-
$if DART2JS
/**
* Creates a text node and inserts it into the DOM at the specified location.
@@ -735,9 +716,6 @@ $endif
$!MEMBERS
}
-// Temporary dispatch hook to support WebComponents.
-Function dynamicUnknownElementDispatcher;
-
final _START_TAG_REGEXP = new RegExp('<(\\w+)');
class _ElementFactoryProvider {
static final _CUSTOM_PARENT_TAG_MAP = const {
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698