Skip to content

Commit bd4be73

Browse files
committed
Why is this here?
All this does is calculate the absdiff between these two static numbers, then never use the result. Based on similarity, this may have been debugging related to checking whether durations are close enough.
1 parent 198a5d7 commit bd4be73

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎scripts/event.js‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -531,9 +531,6 @@
531531
.on('loadedmetadata',function() {
532532
// should be able to get duration now
533533
thisObj.duration = thisObj.media.duration;
534-
var x = 50.5;
535-
var y = 51.9;
536-
var diff = Math.abs(Math.round(x)-Math.round(y));
537534
})
538535
.on('canplay',function() {
539536
// previously handled seeking to startTime here
@@ -545,7 +542,7 @@
545542
// but that proved to be too soon for some of this functionality.
546543
// TODO: Monitor this. If moving it here causes performance issues,
547544
// consider moving some or all of this functionality to 'canplay'
548-
thisObj.onMediaNewSourceLoad();
545+
thisObj.onMediaNewSourceLoad();
549546
})
550547
.on('play',function() {
551548
// 'play' indicates that the play method has been called.

0 commit comments

Comments
 (0)