Permalink
Browse files

Update .dart.js

  • Loading branch information...
1 parent c2a4f93 commit 81078f60010b80a62fcf2e7b3761d4ab3a4dc083 @gfx committed Mar 17, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 Fireworks.dart.js
View
@@ -3514,6 +3514,10 @@ function FireworkView(canvas) {
$this.explode(e.touches.$index((0)).pageX, e.touches.$index((1)).pageY);
})
, false);
+ for (var i = (0);
+ i < (3); i++) {
+ $this.explode(random() * canvas.width, (canvas.height / (4)).toInt());
+ }
})
);
}
@@ -3569,10 +3573,10 @@ function randomColor() {
}
function main() {
var canvas = get$$document().query("#night-sky");
- var fm = new FireworkView(canvas);
+ var view = new FireworkView(canvas);
var watcher = new FPSWatcher();
get$$window().setInterval((function () {
- fm.update();
+ view.update();
watcher.update();
})
, (0));

0 comments on commit 81078f6

Please sign in to comment.