From 9cb0ac199ac6efbb071fc9e3b8905c8a94d88d00 Mon Sep 17 00:00:00 2001 From: "A.T. Fouty" Date: Tue, 14 May 2013 17:17:36 -0700 Subject: [PATCH] updated the show method to respect the shoudlSkip method if it's defined --- guiders.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/guiders.js b/guiders.js index 79740fc..c1a961b 100644 --- a/guiders.js +++ b/guiders.js @@ -576,6 +576,13 @@ var guiders = (function($) { } var myGuider = guiders.get(id); + + if (myGuider.shouldSkip && myGuider.shouldSkip()) { + guiders._currentGuiderID = id; + guiders.next(); + return guiders; + } + if (myGuider.overlay) { guiders._showOverlay(); // if guider is attached to an element, make sure it's visible