Use DOM constructor instead of XPCOM interface to detect DOM element

This commit is contained in:
YUKI Hiroshi 2014-09-30 21:19:33 +09:00
parent 2b4be0cdfc
commit eb42092e49

View File

@ -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(