From: rwldrn Date: Thu, 23 Jun 2011 17:53:31 +0000 (-0400) Subject: [#593] Fixes incorrect index dereferencing X-Git-Tag: v0.7^2~17^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=f2656208fdffc50cdc66ae9af31482ed8217d373;p=popcorn-js.git [#593] Fixes incorrect index dereferencing --- 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] );