Skip to content

Commit

Permalink
Fix bug: calling hideAll() with no guiders caused error
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hirtle committed Feb 17, 2012
1 parent 5536271 commit 381f130
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 381f130

Please sign in to comment.