From: Rick Waldron Date: Tue, 6 Sep 2011 18:27:59 +0000 (-0400) Subject: [#709] Fixes lint issues X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=4ed129337f29af9e64e737a23977e10478de2894;p=popcorn-js.git [#709] Fixes lint issues --- diff --git a/popcorn.js b/popcorn.js index 21de7bd..90f729e 100644 --- a/popcorn.js +++ b/popcorn.js @@ -886,21 +886,18 @@ end = tracks.endIndex, start = tracks.startIndex, - registryByName = Popcorn.registryByName; + registryByName = Popcorn.registryByName, + byEnd, byStart, natives, type; // Playbar advancing if ( previousTime < currentTime ) { - - - - while ( tracksBy.end[ end ] && tracksBy.end[ end ].end <= currentTime ) { - var byEnd = tracksBy.end[ end ], - natives = byEnd._natives, - type = natives && natives.type; + byEnd = tracksBy.end[ end ]; + natives = byEnd._natives; + type = natives && natives.type; // If plugin does not exist on this instance, remove it if ( !natives || @@ -922,9 +919,9 @@ while ( tracksBy.start[ start ] && tracksBy.start[ start ].start <= currentTime ) { - var byStart = tracksBy.start[ start ], - natives = byStart._natives, - type = natives && natives.type; + byStart = tracksBy.start[ start ]; + natives = byStart._natives; + type = natives && natives.type; // If plugin does not exist on this instance, remove it if ( !natives || @@ -951,9 +948,9 @@ while ( tracksBy.start[ start ] && tracksBy.start[ start ].start > currentTime ) { - var byStart = tracksBy.start[ start ], - natives = byStart._natives, - type = natives && natives.type; + byStart = tracksBy.start[ start ]; + natives = byStart._natives; + type = natives && natives.type; // if plugin does not exist on this instance, remove it if ( !natives || @@ -974,9 +971,9 @@ while ( tracksBy.end[ end ] && tracksBy.end[ end ].end > currentTime ) { - var byEnd = tracksBy.end[ end ], - natives = byEnd._natives, - type = natives && natives.type; + byEnd = tracksBy.end[ end ]; + natives = byEnd._natives; + type = natives && natives.type; // if plugin does not exist on this instance, remove it if ( !natives ||