Skip to content

Commit 0b27e07

Browse files
committed
IE <= 8 doesn't support Date.now(). Fixes blueimp#1258.
1 parent 1336453 commit 0b27e07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/jquery.fileupload.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload Plugin 5.11
2+
* jQuery File Upload Plugin 5.11.1
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2010, Sebastian Tschan
@@ -185,7 +185,7 @@
185185
],
186186

187187
_BitrateTimer: function () {
188-
this.timestamp = Date.now();
188+
this.timestamp = +(new Date());
189189
this.loaded = 0;
190190
this.bitrate = 0;
191191
this.getBitrate = function (now, loaded, interval) {
@@ -231,7 +231,7 @@
231231

232232
_onProgress: function (e, data) {
233233
if (e.lengthComputable) {
234-
var now = Date.now(),
234+
var now = +(new Date()),
235235
total,
236236
loaded;
237237
if (data._time && data.progressInterval &&

0 commit comments

Comments
 (0)