Simplify
This commit is contained in:
parent
23aeb5b243
commit
112edbf3cd
@ -149,12 +149,12 @@ var TreeStyleTabWindowHelper = {
|
|||||||
aObserver = aObserver.tabContainer;
|
aObserver = aObserver.tabContainer;
|
||||||
|
|
||||||
aObserver.__treestyletab__getDropEffectForTabDrag = aObserver._getDropEffectForTabDrag;
|
aObserver.__treestyletab__getDropEffectForTabDrag = aObserver._getDropEffectForTabDrag;
|
||||||
aObserver._getDropEffectForTabDrag = function(...aArgs) {
|
aObserver._getDropEffectForTabDrag = function(aEvent, ...aArgs) {
|
||||||
var effects = aObserver.__treestyletab__getDropEffectForTabDrag.call(this, ...aArgs);
|
var effects = aObserver.__treestyletab__getDropEffectForTabDrag(aEvent, ...aArgs);
|
||||||
if (effects === 'copy' || effects === 'move') {
|
if (effects === 'copy' || effects === 'move') {
|
||||||
let TSTTabBrowser = this instanceof Element ? (this.tabbrowser || this) : gBrowser ;
|
let TSTTabBrowser = this instanceof Element ? (this.tabbrowser || this) : gBrowser ;
|
||||||
var TST = TSTTabBrowser.treeStyleTab
|
var TST = TSTTabBrowser.treeStyleTab
|
||||||
if (!TST.tabbarDNDObserver.canDropTab(aArgs[0]))
|
if (!TST.tabbarDNDObserver.canDropTab(aEvent))
|
||||||
effects = 'none';
|
effects = 'none';
|
||||||
}
|
}
|
||||||
return effects;
|
return effects;
|
||||||
|
Loading…
Reference in New Issue
Block a user