diff options
| author | wjames5 <will@tekimaki.com> | 2008-07-13 19:49:25 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2008-07-13 19:49:25 +0000 |
| commit | de53dca42e4e3a89944cefc5db8e42c88938f89e (patch) | |
| tree | 2a2ae9022f6426795f46e02d54d2a95d3401ef33 /javascript/libs | |
| parent | 21d284457177de15b1a4663175e6b9f5b2c20821 (diff) | |
| download | util-de53dca42e4e3a89944cefc5db8e42c88938f89e.tar.gz util-de53dca42e4e3a89944cefc5db8e42c88938f89e.tar.bz2 util-de53dca42e4e3a89944cefc5db8e42c88938f89e.zip | |
provide an empty function if oldonclick is null
Diffstat (limited to 'javascript/libs')
| -rw-r--r-- | javascript/libs/tabpane.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/javascript/libs/tabpane.js b/javascript/libs/tabpane.js index 15c6270..7103643 100644 --- a/javascript/libs/tabpane.js +++ b/javascript/libs/tabpane.js @@ -1,4 +1,4 @@ -// $Header: /cvsroot/bitweaver/_bit_util/javascript/libs/tabpane.js,v 1.17 2008/07/13 18:36:14 wjames5 Exp $ +// $Header: /cvsroot/bitweaver/_bit_util/javascript/libs/tabpane.js,v 1.18 2008/07/13 19:49:25 wjames5 Exp $ //------------------------------------------------------------------------- // Tab Pane 1.02 @@ -229,7 +229,7 @@ function WebFXTabPage( el, tabPane, nIndex ) { // hook up events, using DOM0 var oThis = this; // we can bind a custom onclick event to the tab by passing one in - this lets us associate additional events with the click of a tab -wjames5 - var oldOnclick = this.tab.onclick; + var oldOnclick = this.tab.onclick != null? this.tab.onclick:function(){}; this.tab.onclick = function () { oThis.select(); oldOnclick(); }; this.tab.onmouseover = function () { WebFXTabPage.tabOver( oThis ); }; this.tab.onmouseout = function () { WebFXTabPage.tabOut( oThis ); }; |
