Skip to content

Commit

Permalink
Fix chieffancypants#211: Expose whether the cheatsheet is visible in …
Browse files Browse the repository at this point in the history
…the API
  • Loading branch information
leyanlo committed Jun 9, 2016
1 parent e11f35b commit 0d423b5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
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
6 changes: 6 additions & 0 deletions src/hotkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,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 @@ -580,6 +585,7 @@
bindTo : bindTo,
template : this.template,
toggleCheatSheet : toggleCheatSheet,
helpVisible : helpVisible,
includeCheatSheet : this.includeCheatSheet,
cheatSheetHotkey : this.cheatSheetHotkey,
cheatSheetDescription : this.cheatSheetDescription,
Expand Down

0 comments on commit 0d423b5

Please sign in to comment.