phosphor-tabs
Advanced tools
Comparing version 1.0.0-rc.1 to 1.0.0-rc.2
@@ -108,6 +108,2 @@ import { Message } from 'phosphor-messaging'; | ||
/** | ||
* The static type of the constructor. | ||
*/ | ||
'constructor': typeof TabBar; | ||
/** | ||
* Construct a new tab bar. | ||
@@ -114,0 +110,0 @@ */ |
@@ -570,3 +570,4 @@ /*----------------------------------------------------------------------------- | ||
// Ignore the click if it was not on a close icon. | ||
var icon = this.constructor.tabCloseIcon(this._tabs[i]); | ||
var constructor = this.constructor; | ||
var icon = constructor.tabCloseIcon(this._tabs[i]); | ||
if (!icon.contains(event.target)) { | ||
@@ -601,3 +602,4 @@ return; | ||
// Ignore the press if it was on a close icon. | ||
var icon = this.constructor.tabCloseIcon(this._tabs[i]); | ||
var constructor = this.constructor; | ||
var icon = constructor.tabCloseIcon(this._tabs[i]); | ||
if (icon.contains(event.target)) { | ||
@@ -604,0 +606,0 @@ return; |
@@ -35,6 +35,2 @@ import { StackedPanel } from 'phosphor-stackedpanel'; | ||
/** | ||
* The static type of the constructor. | ||
*/ | ||
'constructor': typeof TabPanel; | ||
/** | ||
* Construct a new tab panel. | ||
@@ -41,0 +37,0 @@ */ |
@@ -50,4 +50,5 @@ /*----------------------------------------------------------------------------- | ||
this.addClass(TAB_PANEL_CLASS); | ||
this._tabBar = this.constructor.createTabBar(); | ||
this._stackedPanel = this.constructor.createStackedPanel(); | ||
var constructor = this.constructor; | ||
this._tabBar = constructor.createTabBar(); | ||
this._stackedPanel = constructor.createStackedPanel(); | ||
this._tabBar.tabMoved.connect(this._onTabMoved, this); | ||
@@ -54,0 +55,0 @@ this._tabBar.currentChanged.connect(this._onCurrentChanged, this); |
{ | ||
"name": "phosphor-tabs", | ||
"version": "1.0.0-rc.1", | ||
"version": "1.0.0-rc.2", | ||
"description": "Phosphor widgets for creating tab bars and tab panels.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
64143
1728