Skip to content

Commit

Permalink
Merge pull request impress#54 from Haacked/selectGuard
Browse files Browse the repository at this point in the history
select method updated to not run if the element is already active
  • Loading branch information
bartaz committed Jan 12, 2012
2 parents 8b3c38a + bf8a540 commit 185ba4e
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 185ba4e

Please sign in to comment.