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

Unified Diff: tools/dom/templates/html/impl/impl_Event.darttemplate

Issue 12541020: Consolidating platform code into dart:html_common (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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
Index: tools/dom/templates/html/impl/impl_Event.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_Event.darttemplate b/tools/dom/templates/html/impl/impl_Event.darttemplate
index 70c340a424c9fc99f0eeae3302e5e4dcccc23901..b08aa32150c1e4aaed4bfa33063094bdc5dfb0db 100644
--- a/tools/dom/templates/html/impl/impl_Event.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Event.darttemplate
@@ -34,16 +34,4 @@ $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
return e;
}
$!MEMBERS
-
- /**
- * Checks to see if the event class is supported by the current platform.
- */
- static bool _isTypeSupported(String eventType) {
- // Browsers throw for unsupported event names.
- try {
- var e = document.$dom_createEvent(eventType);
- return e is Event;
- } catch (_) { }
- return false;
- }
}

Powered by Google App Engine
This is Rietveld 408576698