Skip to content

Commit

Permalink
modified the loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher De Cairos committed Jun 1, 2011
1 parent 2f37784 commit b06a3bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions popcorn.js
Expand Up @@ -779,10 +779,10 @@
Popcorn.getTrackEvent = function( obj, trackId ) {

var byStart = obj.data.trackEvents.byStart,
len = byStart.length, i;
len = byStart.length;

for (i = 0; i < len; i++) {
o = byStart[i];
while ( len-- ) {
o = byStart[len];
if ( o._id === trackId ) {
return o;
}
Expand Down

0 comments on commit b06a3bf

Please sign in to comment.