Index: sdk/lib/html/dart2js/html_dart2js.dart |
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart |
index 4abacc60abb0946e9c7882ef4531bf9e82f42631..d228722aec03ba2130b42038a73961942ca53fbc 100644 |
--- a/sdk/lib/html/dart2js/html_dart2js.dart |
+++ b/sdk/lib/html/dart2js/html_dart2js.dart |
@@ -26043,12 +26043,7 @@ class TouchEvent extends UIEvent native "TouchEvent" { |
* Note that touch events are only supported if the user is using a touch |
* device. |
*/ |
- static bool get supported { |
- if (JS('bool', '"ontouchstart" in window')) { |
- return Device.isEventTypeSupported('TouchEvent'); |
- } |
- return false; |
- } |
+ static bool get supported => Device.isEventTypeSupported('TouchEvent'); |
} |
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |