Fix bug commit->code still show sidebar

This commit is contained in:
Buu Nguyen 2014-05-23 12:53:03 -07:00
parent 8422df920c
commit 5a26a4794d
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@
, RESERVED_REPO_NAMES = ['followers', 'following']
, EVT_TOGGLED = 'octotree:toggled'
// fragile selectors based GitHub DOM, tries to be change-proof
// fragile selectors based GitHub DOM, uses of them must be change-proof
, GH_BRANCH_SEL = '*[data-master-branch]'
, GH_BRANCH_BTN_SEL = '*[data-master-branch] > .js-select-button'
, GH_PJAX_SEL = '#js-repo-pjax-container'
@ -129,6 +129,7 @@
}
else {
$toggleBtn.hide()
toggleSidebar(false)
if (keysBound) {
key.unbind('⌘+b, ⌃+b')
keysBound = false