タブバーの移動時に例外が発生していた

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6262 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-02-05 02:12:01 +00:00
parent f8f4402e9a
commit f3ced4fe56

View File

@ -30,7 +30,7 @@ TreeStyleTabBrowserTabpanelDNDObserver.prototype = {
if (position != 'center' &&
position != sv.mTabBrowser.getAttribute(sv.kTABBAR_POSITION)) {
if (sv.getTreePref('tabbar.fixed.autoCancelOnDrop') &&
aXferData.data != sv.kTABBAR_MOVE_FORCE) {
(!aXferData || aXferData.data != sv.kTABBAR_MOVE_FORCE)) {
let orient = (position == 'left' || position == 'right') ? 'vertical' : 'horizontal' ;
sv.setTreePref('tabbar.fixed.'+orient, false);
}