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

Unified Diff: client/samples/sunflower/Sunflower.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/samples/spirodraw/Spirodraw.dart ('k') | client/testing/unittest/unittest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/samples/sunflower/Sunflower.dart
diff --git a/client/samples/sunflower/Sunflower.dart b/client/samples/sunflower/Sunflower.dart
index 2eee6699da17122a5edfaf0b1d28e03c6100465f..958b9e674e88f422a69d145b2e5860157218d0a5 100644
--- a/client/samples/sunflower/Sunflower.dart
+++ b/client/samples/sunflower/Sunflower.dart
@@ -23,10 +23,10 @@ class Sunflower {
ctx = canvas.getContext("2d");
HTMLInputElement slider = doc.getElementById("slider");
- slider.onchange = (Event e) {
+ slider.addEventListener('change', (Event e) {
seeds = Math.parseInt(slider.value);
drawFrame();
- };
+ }, true);
drawFrame();
}
« no previous file with comments | « client/samples/spirodraw/Spirodraw.dart ('k') | client/testing/unittest/unittest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698