Use DOM constructor instead of XPCOM interface to detect DOM element
This commit is contained in:
parent
2b4be0cdfc
commit
eb42092e49
@ -139,7 +139,7 @@ var TreeStyleTabWindowHelper = {
|
||||
eval('aObserver._setEffectAllowedForDataTransfer = '+
|
||||
aObserver._setEffectAllowedForDataTransfer.toSource().replace(
|
||||
'{',
|
||||
'{ var TSTTabBrowser = this instanceof Ci.nsIDOMElement ? (this.tabbrowser || this) : gBrowser ; var TST = TSTTabBrowser.treeStyleTab;'
|
||||
'{ var TSTTabBrowser = this instanceof Element ? (this.tabbrowser || this) : gBrowser ; var TST = TSTTabBrowser.treeStyleTab;'
|
||||
).replace(
|
||||
/\.screenX/g, '[TST.screenPositionProp]'
|
||||
).replace(
|
||||
|
Loading…
Reference in New Issue
Block a user