]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#520] Quick lint fix; idx already defined
authorRick Waldron <waldron.rick@gmail.com>
Tue, 17 May 2011 00:16:18 +0000 (20:16 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Tue, 17 May 2011 00:16:18 +0000 (20:16 -0400)
popcorn.js

index 42c009479346b29ba4ecb1a9b16ec08e9c61c25a..9721167b2f12f275e16f95b55d8ff861f76e59a2 100644 (file)
 
     //  Store this definition in an array sorted by times
     var byStart = obj.data.trackEvents.byStart,
-        byEnd = obj.data.trackEvents.byEnd;
+        byEnd = obj.data.trackEvents.byEnd, 
+        idx;
    
-    for ( var idx = byStart.length-1; idx >= 0; idx-- ) {
+    for ( idx = byStart.length-1; idx >= 0; idx-- ) {
 
       if ( track.start >= byStart[idx].start ) {
         byStart.splice( idx+1, 0, track );
       }
     }
    
-    for ( var idx = byEnd.length-1; idx >= 0; idx-- ) {
+    for ( idx = byEnd.length-1; idx >= 0; idx-- ) {
 
       if ( track.start >= byEnd[idx].start ) {
         byEnd.splice( idx+1, 0, track );