File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -409,7 +409,6 @@ var throttleOnProgress = function (total, onProgress) {
409
409
var time0 = Date . now ( ) ;
410
410
var time1 ;
411
411
var timer ;
412
- var preInfo = { } ;
413
412
function update ( ) {
414
413
timer = 0 ;
415
414
if ( onProgress && ( typeof onProgress === 'function' ) ) {
@@ -424,14 +423,7 @@ var throttleOnProgress = function (total, onProgress) {
424
423
time0 = time1 ;
425
424
size0 = size1 ;
426
425
try {
427
- var curInfo = { loaded : size1 , total : total , speed : speed , percent : percent } ;
428
- if ( curInfo . loaded !== preInfo . loaded ||
429
- curInfo . total !== preInfo . total ||
430
- curInfo . speed !== preInfo . speed ||
431
- curInfo . percent !== preInfo . percent ) {
432
- onProgress ( curInfo ) ;
433
- }
434
- preInfo = curInfo ;
426
+ onProgress ( { loaded : size1 , total : total , speed : speed , percent : percent } ) ;
435
427
} catch ( e ) {
436
428
}
437
429
}
You can’t perform that action at this time.
0 commit comments