]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
cleaned up useless if statement, as per review [t655]
authorChristopher De Cairos <chris.decairos@gmail.com>
Fri, 26 Aug 2011 16:12:56 +0000 (12:12 -0400)
committerChristopher De Cairos <chris.decairos@gmail.com>
Fri, 26 Aug 2011 16:12:56 +0000 (12:12 -0400)
plugins/timeline/popcorn.timeline.js

index e7d56da59789eec98b0dc174198ba79e4c736d61..238f6b607ca6f09be6be74210742f351ca29ccf7 100644 (file)
@@ -40,7 +40,7 @@
     var target = document.getElementById( options.target ),
         contentDiv = document.createElement( "div" ),
         container,
-        goingUp;
+        goingUp = true;
 
     if ( target && !target.firstChild ) {
       target.appendChild ( container = document.createElement( "div" ) );
 
     //  Default to up if options.direction is non-existant or not up or down
     options.direction = options.direction || "up";
-    if ( options.direction.toLowerCase() === "up" ) {
-    
-      goingUp = true;
-    }
-    else if ( options.direction.toLowerCase() === "down" ) {
+    if ( options.direction.toLowerCase() === "down" ) {
 
       goingUp = false;
     }
-    else {
-    
-      goingUp = true;
-    }
 
     if ( target && container ) {
       // if this isnt the first div added to the target div