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

Unified Diff: lib/dom/templates/html/dartium/impl_EventTarget.darttemplate

Issue 10456033: Remove now useless top level _wrap and _unwrap from dart:html. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | « lib/dom/templates/html/dartium/html_dartium.darttemplate ('k') | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/templates/html/dartium/impl_EventTarget.darttemplate
diff --git a/lib/dom/templates/html/dartium/impl_EventTarget.darttemplate b/lib/dom/templates/html/dartium/impl_EventTarget.darttemplate
index 8eb8ed7022ecf01b97a30a77cde3d6e04fee1dd2..9ad91e163da3d1d3fbf020f051c7d6f9734f1760 100644
--- a/lib/dom/templates/html/dartium/impl_EventTarget.darttemplate
+++ b/lib/dom/templates/html/dartium/impl_EventTarget.darttemplate
@@ -51,7 +51,7 @@ class _EventListenerListImpl implements EventListenerList {
// TODO(jacobr): what is the correct behavior here. We could alternately
// force the event to have the expected type.
assert(evt.type == _type);
- return _ptr.$dom_dispatchEvent(_unwrap(evt));
+ return _ptr.$dom_dispatchEvent(evt);
}
void _add(EventListener listener, bool useCapture) {
@@ -97,7 +97,7 @@ class _EventListenerListImpl implements EventListenerList {
}
}
}
- final wrapped = (e) { listener(_wrap(e)); };
+ final wrapped = (e) { listener(e); };
_wrappers.add(new _EventListenerWrapper(listener, wrapped, useCapture));
return wrapped;
}
« no previous file with comments | « lib/dom/templates/html/dartium/html_dartium.darttemplate ('k') | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698