From 4ed129337f29af9e64e737a23977e10478de2894 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Tue, 6 Sep 2011 14:27:59 -0400 Subject: [PATCH] [#709] Fixes lint issues --- popcorn.js | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) 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 || -- 2.43.0