Accept null or something as the options
This commit is contained in:
parent
2452641711
commit
6f658d4eef
@ -1307,11 +1307,13 @@ var TreeStyleTabBase = inherit(TreeStyleTabConstants, {
|
||||
|
||||
/* notify "ready to open child tab(s)" */
|
||||
|
||||
readyToOpenChildTab : function TSTBase_readyToOpenChildTab(aTabOrSomething, aMultiple, aOptions = {}) /* PUBLIC API */
|
||||
readyToOpenChildTab : function TSTBase_readyToOpenChildTab(aTabOrSomething, aMultiple, aOptions) /* PUBLIC API */
|
||||
{
|
||||
if (!utils.getTreePref('autoAttach'))
|
||||
return false;
|
||||
|
||||
if (!aOptions)
|
||||
aOptions = {};
|
||||
if (aOptions instanceof Ci.nsIDOMElement) // for backward compatibility
|
||||
aOptions = { insertBefore : aOptions };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user