Bug 711508 - Ensure that external toolbars are not duplicated for associated toolboxes. r=enndeakin.

This commit is contained in:
Mike Conley 2011-12-16 13:42:17 -05:00
parent d39ab52638
commit 90b789b113

View File

@ -111,7 +111,9 @@
if (!toolbox)
throw("toolboxid attribute points to a toolbox which doesn't exist");
toolbox.externalToolbars.push(this);
if (toolbox.externalToolbars.indexOf(this) == -1)
toolbox.externalToolbars.push(this);
return this._toolbox = toolbox;
}