From: David Seifried Date: Wed, 22 Jun 2011 15:47:31 +0000 (-0400) Subject: [#384] Removed some useless code X-Git-Tag: v0.7^2~27^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=565aa9450ed4afea30acb158ee1799ed38803a95;p=popcorn-js.git [#384] Removed some useless code --- diff --git a/plugins/timeline/popcorn.timeline.js b/plugins/timeline/popcorn.timeline.js index d37367d..a5b7820 100644 --- a/plugins/timeline/popcorn.timeline.js +++ b/plugins/timeline/popcorn.timeline.js @@ -58,7 +58,7 @@ target.appendChild( newdiv ); // if this isnt the first div added to the target div - if( i && options.direction.length === 2 ){ + if( options.direction.length === 2 ){ // insert the current div before the previous div inserted target.insertBefore( newdiv, document.getElementById( "timelineDiv" + ( i - 1 ) ) ); }