Permalink
Browse files

comment usage of Math.random()

  • Loading branch information...
1 parent 94d9bad commit 46734f31f22a04ce5b9cbc132e138b0d2725735b @bluesmoon bluesmoon committed Apr 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 boomerang.js
View
@@ -1043,7 +1043,7 @@ var impl = {
load_img: function(i, run, callback)
{
var url = this.base_url + images[i].name
- + '?t=' + (new Date().getTime()) + Math.random(),
+ + '?t=' + (new Date().getTime()) + Math.random(), // Math.random() is slow, but we get it before we start the timer
timer=0, tstart=0,
img = new Image(),
that=this;

0 comments on commit 46734f3

Please sign in to comment.