Skip to content

Commit

Permalink
IE <= 8 doesn't support Date.now(). Fixes blueimp#1258.
Browse files Browse the repository at this point in the history
  • Loading branch information
blueimp committed May 2, 2012
1 parent 1336453 commit 0b27e07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/jquery.fileupload.js
@@ -1,5 +1,5 @@
/*
* jQuery File Upload Plugin 5.11
* jQuery File Upload Plugin 5.11.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
Expand Down Expand Up @@ -185,7 +185,7 @@
],

_BitrateTimer: function () {
this.timestamp = Date.now();
this.timestamp = +(new Date());
this.loaded = 0;
this.bitrate = 0;
this.getBitrate = function (now, loaded, interval) {
Expand Down Expand Up @@ -231,7 +231,7 @@

_onProgress: function (e, data) {
if (e.lengthComputable) {
var now = Date.now(),
var now = +(new Date()),
total,
loaded;
if (data._time && data.progressInterval &&
Expand Down

0 comments on commit 0b27e07

Please sign in to comment.