Skip to content

Commit

Permalink
Updated select method to not run transitions if the element is alread…
Browse files Browse the repository at this point in the history
…y active
  • Loading branch information
haacked committed Jan 12, 2012
1 parent ba1bba1 commit bf8a540
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/impress.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit bf8a540

Please sign in to comment.