Commit 99d0e975 authored by jgould's avatar jgould

moved adding variable to function end

parent 3ab3fff4
...@@ -220,11 +220,12 @@ morpheus.TabManager.prototype = { ...@@ -220,11 +220,12 @@ morpheus.TabManager.prototype = {
this.activeTabObject = options.object; this.activeTabObject = options.object;
$panel.focus(); $panel.focus();
} }
this.adding = false;
if (this.options.autohideTabBar) { if (this.options.autohideTabBar) {
this.$nav.css('display', this.idToTabObject.size() > 1 ? '' this.$nav.css('display', this.idToTabObject.size() > 1 ? ''
: 'none'); : 'none');
} }
this.adding = false;
return { return {
$panel: $panel, $panel: $panel,
id: '#' + id id: '#' + id
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment