Merge pull request #54 from Haacked/selectGuard

select method updated to not run if the element is already active
This commit is contained in:
Bartek Szopka
2012-01-12 11:08:37 -08:00

View File

@@ -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;
}