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

Unified Diff: client/samples/spirodraw/ColorPicker.dart

Issue 8637013: Remove support for attribute event listeners. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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 | « client/fling/dist/runtime/apps/adminz/adminz.dart ('k') | client/samples/spirodraw/Spirodraw.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/samples/spirodraw/ColorPicker.dart
diff --git a/client/samples/spirodraw/ColorPicker.dart b/client/samples/spirodraw/ColorPicker.dart
index 0b083fe889a964a3ed5c277536e054ba506a4e34..b142e3b33fe1573125126958aa02c74c7509edac 100644
--- a/client/samples/spirodraw/ColorPicker.dart
+++ b/client/samples/spirodraw/ColorPicker.dart
@@ -64,8 +64,8 @@ class ColorPicker {
}
void addHandlers() {
- canvasElement.onmousemove = (e) { onMouseMove(e); };
- canvasElement.onmousedown = (e) { onMouseDown(e); };
+ canvasElement.addEventListener('mousemove', (e) => onMouseMove(e), true);
+ canvasElement.addEventListener('mousedown', (e) => onMouseDown(e), true);
}
void drawPalette() {
« no previous file with comments | « client/fling/dist/runtime/apps/adminz/adminz.dart ('k') | client/samples/spirodraw/Spirodraw.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698