Skip to content

Commit

Permalink
Fix #211: Expose whether the cheatsheet is visible in the public API
Browse files Browse the repository at this point in the history
  • Loading branch information
leyanlo committed Jun 14, 2016
1 parent 08ebcbf commit 2edf978
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions build/hotkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,11 @@
return false;
}

// Helper function to expose helpVisible for the public API
function helpVisible() {
return scope.helpVisible;
}

/**
* Creates a new Hotkey and creates the Mousetrap binding
*
Expand Down Expand Up @@ -586,6 +591,7 @@
bindTo : bindTo,
template : this.template,
toggleCheatSheet : toggleCheatSheet,
helpVisible : helpVisible,
includeCheatSheet : this.includeCheatSheet,
cheatSheetHotkey : this.cheatSheetHotkey,
cheatSheetDescription : this.cheatSheetDescription,
Expand Down
Loading

0 comments on commit 2edf978

Please sign in to comment.