Index: tools/dom/templates/html/impl/impl_TouchEvent.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_TouchEvent.darttemplate b/tools/dom/templates/html/impl/impl_TouchEvent.darttemplate |
index af426b530e356607a58cbd32742a0871d055aa7f..c460c1ba067665932139f2639699ed2bb598e87b 100644 |
--- a/tools/dom/templates/html/impl/impl_TouchEvent.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_TouchEvent.darttemplate |
@@ -28,17 +28,5 @@ $!MEMBERS |
* Note that touch events are only supported if the user is using a touch |
* device. |
*/ |
- static bool get supported { |
-$if DART2JS |
- if (JS('bool', '"ontouchstart" in window')) { |
- return Device.isEventTypeSupported('TouchEvent'); |
- } |
- return false; |
-$else |
- // Bug #8186 add equivalent 'ontouchstart' check for Dartium. |
- // Basically, this is a fairly common check and it'd be great if it did not |
- // throw exceptions. |
- return Device.isEventTypeSupported('TouchEvent'); |
-$endif |
- } |
+ static bool get supported => Device.isEventTypeSupported('TouchEvent'); |
} |