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 = '+
|
eval('aObserver._setEffectAllowedForDataTransfer = '+
|
||||||
aObserver._setEffectAllowedForDataTransfer.toSource().replace(
|
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(
|
).replace(
|
||||||
/\.screenX/g, '[TST.screenPositionProp]'
|
/\.screenX/g, '[TST.screenPositionProp]'
|
||||||
).replace(
|
).replace(
|
||||||
|
Loading…
Reference in New Issue
Block a user