diff options
| author | wjames5 <will@tekimaki.com> | 2008-12-11 15:04:52 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2008-12-11 15:04:52 +0000 |
| commit | 4d18a5c1c26be72d38b152d07ed7b9c8c20108fb (patch) | |
| tree | 257468b4f2ee637e06c33819e22bfef71478a027 /javascript/libs | |
| parent | 41b283b64ff480dd4a4e2bad23ecd5dc7e267c89 (diff) | |
| download | util-4d18a5c1c26be72d38b152d07ed7b9c8c20108fb.tar.gz util-4d18a5c1c26be72d38b152d07ed7b9c8c20108fb.tar.bz2 util-4d18a5c1c26be72d38b152d07ed7b9c8c20108fb.zip | |
fix ie bug where typeof can be unknown
Diffstat (limited to 'javascript/libs')
| -rw-r--r-- | javascript/libs/tabpane.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/javascript/libs/tabpane.js b/javascript/libs/tabpane.js index 8f7fd30..2143b2b 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.19 2008/09/03 07:12:18 squareing Exp $ +// $Header: /cvsroot/bitweaver/_bit_util/javascript/libs/tabpane.js,v 1.20 2008/12/11 15:04:52 wjames5 Exp $ //------------------------------------------------------------------------- // Tab Pane 1.02 @@ -268,7 +268,8 @@ WebFXTabPage.prototype.dispose = function () { // I suspect this is for "security" but that is stupid since we // can still hide it off screen like this. var safari = /^Apple/; - if (this.element.style.display == "none" && navigator.vendor == safari) { + // note the crazy 'unknown' check here. this is for IE (of course) whoes xmlhtml is not part of the js engine and willy nilly throws in crap outside the spec. + if (this.element.style.display == "none" && typeof( navigator.vendor ) != "unknown" && navigator.vendor == safari) { this.element.style.position = "absolute"; this.element.style.left = "-10000px"; this.element.style.display = "block"; |
