Suppress "too much recursion" error
This commit is contained in:
parent
d594fdf36b
commit
3f59a46efe
@ -75,12 +75,14 @@ var TreeStyleTabWindowHelper = {
|
|||||||
Object.keys(window.__treestyletab__openLinkIn_extraParams).forEach(function(aKey) {
|
Object.keys(window.__treestyletab__openLinkIn_extraParams).forEach(function(aKey) {
|
||||||
aParams[aKey] = window.__treestyletab__openLinkIn_extraParams[aKey];
|
aParams[aKey] = window.__treestyletab__openLinkIn_extraParams[aKey];
|
||||||
});
|
});
|
||||||
|
var result;
|
||||||
try {
|
try {
|
||||||
return window.__treestyletab__openLinkIn.apply(this, [aUrl, aWhere, aParams].concat(aArgs));
|
result = window.__treestyletab__openLinkIn.apply(this, [aUrl, aWhere, aParams].concat(aArgs));
|
||||||
}
|
}
|
||||||
finally {
|
catch(e) {
|
||||||
delete window.__treestyletab__openLinkIn_extraParams;
|
|
||||||
}
|
}
|
||||||
|
delete window.__treestyletab__openLinkIn_extraParams;
|
||||||
|
return result;
|
||||||
};
|
};
|
||||||
|
|
||||||
window.__treestyletab__handleLinkClick = window.handleLinkClick;
|
window.__treestyletab__handleLinkClick = window.handleLinkClick;
|
||||||
@ -89,12 +91,14 @@ var TreeStyleTabWindowHelper = {
|
|||||||
event : aEvent,
|
event : aEvent,
|
||||||
linkNode : aLinkNode
|
linkNode : aLinkNode
|
||||||
};
|
};
|
||||||
|
var result;
|
||||||
try {
|
try {
|
||||||
return window.__treestyletab__handleLinkClick.apply(this, [aEvent, aHref, aLinkNode].concat(aArgs));
|
result = window.__treestyletab__handleLinkClick.apply(this, [aEvent, aHref, aLinkNode].concat(aArgs));
|
||||||
}
|
}
|
||||||
finally {
|
catch(e) {
|
||||||
delete window.__treestyletab__openLinkIn_extraParams;
|
|
||||||
}
|
}
|
||||||
|
delete window.__treestyletab__openLinkIn_extraParams;
|
||||||
|
return result;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.overrideExtensionsPreInit(); // windowHelperHacks.js
|
this.overrideExtensionsPreInit(); // windowHelperHacks.js
|
||||||
|
Loading…
Reference in New Issue
Block a user