From f2656208fdffc50cdc66ae9af31482ed8217d373 Mon Sep 17 00:00:00 2001 From: rwldrn Date: Thu, 23 Jun 2011 13:53:31 -0400 Subject: [PATCH] [#593] Fixes incorrect index dereferencing --- popcorn.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/popcorn.js b/popcorn.js index a5968c1..2d5c036 100644 --- a/popcorn.js +++ b/popcorn.js @@ -237,7 +237,7 @@ if ( !tracksByStart[ tracks.startIndex ]._natives || !!that[ tracksByStart[ tracks.startIndex ]._natives.type ] ) { if ( tracksByStart[ tracks.startIndex ].end > currentTime && tracksByStart[ tracks.startIndex ]._running === false && - that.data.disabled.indexOf( tracksByStart[ tracks.endIndex ]._natives.type ) === -1 ) { + that.data.disabled.indexOf( tracksByStart[ tracks.startIndex ]._natives.type ) === -1 ) { tracksByStart[ tracks.startIndex ]._running = true; tracksByStart[ tracks.startIndex ]._natives.start.call( that, event, tracksByStart[ tracks.startIndex ] ); @@ -273,7 +273,7 @@ if ( !tracksByEnd[ tracks.endIndex ]._natives || !!that[ tracksByEnd[ tracks.endIndex ]._natives.type ] ) { if ( tracksByEnd[ tracks.endIndex ].start <= currentTime && tracksByEnd[ tracks.endIndex ]._running === false && - that.data.disabled.indexOf( tracksByStart[ tracks.endIndex ]._natives.type ) === -1 ) { + that.data.disabled.indexOf( tracksByEnd[ tracks.endIndex ]._natives.type ) === -1 ) { tracksByEnd[ tracks.endIndex ]._running = true; tracksByEnd[ tracks.endIndex ]._natives.start.call( that, event, tracksByEnd[tracks.endIndex] ); -- 2.43.0