Merge pull request #54 from Haacked/selectGuard
select method updated to not run if the element is already active
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user