| 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();
|
| }
|
|
|