From bf8a540e757b7f9d0c839e6d9315964c20fc449f Mon Sep 17 00:00:00 2001 From: Haacked Date: Thu, 12 Jan 2012 08:20:25 -0800 Subject: [PATCH] Updated select method to not run transitions if the element is already active --- js/impress.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/impress.js b/js/impress.js index dfbaaef68..3e6a8d404 100644 --- a/js/impress.js +++ b/js/impress.js @@ -187,8 +187,8 @@ var active = null; var select = function ( el ) { - if ( !el || !el.stepData ) { - // selected element is not defined as step + if ( !el || !el.stepData || el == active) { + // selected element is not defined as step or is already active return false; }