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

Unified Diff: tools/dom/templates/html/dart2js/impl_ElementEvents.darttemplate

Issue 1126463005: Clean up WheelEvent (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review fixes" Created 5 years, 7 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
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | tools/dom/templates/html/impl/impl_CompositionEvent.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/dart2js/impl_ElementEvents.darttemplate
diff --git a/tools/dom/templates/html/dart2js/impl_ElementEvents.darttemplate b/tools/dom/templates/html/dart2js/impl_ElementEvents.darttemplate
index 3e82f583024fa59b954970317079b999593d3849..3db967dbf8d614bd24bf783c615ea4dd3bdaa56f 100644
--- a/tools/dom/templates/html/dart2js/impl_ElementEvents.darttemplate
+++ b/tools/dom/templates/html/dart2js/impl_ElementEvents.darttemplate
@@ -8,16 +8,5 @@ part of $LIBRARYNAME;
class $CLASSNAME extends $SUPER {
$CLASSNAME(EventTarget _ptr) : super(_ptr);
$!MEMBERS
- EventListenerList get mouseWheel {
- if (JS('bool', '#.onwheel !== undefined', _ptr)) {
- // W3C spec, and should be IE9+, but IE has a bug exposing onwheel.
- return this['wheel'];
- } else if (JS('bool', '#.onmousewheel !== undefined', _ptr)) {
- // Chrome & IE
- return this['mousewheel'];
- } else {
- // Firefox
- return this['DOMMouseScroll'];
- }
- }
+ EventListenerList get mouseWheel => this['wheel'];
}
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | tools/dom/templates/html/impl/impl_CompositionEvent.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698