From 97ba499fadddadcfa390bf813b2fdcbd22c0a91c Mon Sep 17 00:00:00 2001 From: Christopher De Cairos Date: Fri, 26 Aug 2011 12:12:56 -0400 Subject: [PATCH] cleaned up useless if statement, as per review [t655] --- plugins/timeline/popcorn.timeline.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/plugins/timeline/popcorn.timeline.js b/plugins/timeline/popcorn.timeline.js index e7d56da..238f6b6 100644 --- a/plugins/timeline/popcorn.timeline.js +++ b/plugins/timeline/popcorn.timeline.js @@ -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" ) ); @@ -57,18 +57,10 @@ // 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 -- 2.43.0