Skip to content

Commit bc622bb

Browse files
committed
Merge pull request #9 from zaycker/master
Fix of openining closed tab by url changing. The problem appears when a tab is closed and active at the same time Closes #9
2 parents f3afded + c544b2a commit bc622bb

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "backbone.tabs",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"homepage": "https://github.com/backbonex/tabs",
55
"authors": [
66
"jifeon <[email protected]>",

lib/ConcealableTabs.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ define([
105105
}
106106
this._closeBodiesHolder(tabNameWithoutClosedSuffix);
107107
} else {
108+
if (this._activeTab === tabName) {
109+
this._openBodiesHolder(tabName);
110+
}
108111
this._super(tabName);
109112
}
110113
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "backbone.tabs",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Tabs for Backbone",
55
"main": "lib/Factory",
66
"directories": {

0 commit comments

Comments
 (0)