Skip to content
This repository has been archived by the owner on Oct 23, 2018. It is now read-only.

Commit

Permalink
Merge pull request pickhardt#48 from wachunga/master
Browse files Browse the repository at this point in the history
Bug: hideAll() with no guiders caused script error
  • Loading branch information
pickhardt committed Feb 21, 2012
2 parents 5536271 + 381f130 commit 186d2ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guiders-1.2.1.js
Expand Up @@ -282,7 +282,7 @@ var guiders = (function($) {
var myGuider = guiders._guiderById(nextGuiderId);
var omitHidingOverlay = myGuider.overlay ? true : false;
guiders.hideAll(omitHidingOverlay, true);
if (currentGuider.highlight) {
if (currentGuider && currentGuider.highlight) {
guiders._dehighlightElement(currentGuider.highlight);
}
guiders.show(nextGuiderId);
Expand Down

0 comments on commit 186d2ac

Please sign in to comment.