]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#384] Removed some useless code
authorDavid Seifried <david.c.seifried@gmail.com>
Wed, 22 Jun 2011 15:47:31 +0000 (11:47 -0400)
committerDavid Seifried <david.c.seifried@gmail.com>
Wed, 22 Jun 2011 15:47:31 +0000 (11:47 -0400)
plugins/timeline/popcorn.timeline.js

index d37367dec9b6ab00ef43992a49cdf604bb809901..a5b7820ef497acc48192252eb8ac74fb47a4c8d9 100644 (file)
@@ -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 ) ) );
       }