Fix indent

This commit is contained in:
Piro / YUKI Hiroshi 2016-09-05 01:04:51 +09:00
parent b3872bf24a
commit 23aeb5b243

View File

@ -148,17 +148,17 @@ var TreeStyleTabWindowHelper = {
)
aObserver = aObserver.tabContainer;
aObserver.__treestyletab__getDropEffectForTabDrag = aObserver._getDropEffectForTabDrag;
aObserver._getDropEffectForTabDrag = function(...aArgs) {
var effects = aObserver.__treestyletab__getDropEffectForTabDrag.call(this, ...aArgs);
if (effects === 'copy' || effects === 'move') {
let TSTTabBrowser = this instanceof Element ? (this.tabbrowser || this) : gBrowser ;
var TST = TSTTabBrowser.treeStyleTab
if (!TST.tabbarDNDObserver.canDropTab(aArgs[0]))
effects = 'none';
}
return effects;
};
aObserver.__treestyletab__getDropEffectForTabDrag = aObserver._getDropEffectForTabDrag;
aObserver._getDropEffectForTabDrag = function(...aArgs) {
var effects = aObserver.__treestyletab__getDropEffectForTabDrag.call(this, ...aArgs);
if (effects === 'copy' || effects === 'move') {
let TSTTabBrowser = this instanceof Element ? (this.tabbrowser || this) : gBrowser ;
var TST = TSTTabBrowser.treeStyleTab
if (!TST.tabbarDNDObserver.canDropTab(aArgs[0]))
effects = 'none';
}
return effects;
};
},
overrideGlobalFunctions : function TSTWH_overrideGlobalFunctions()