Bug 879317 - Customization target should support insertItem, r=jaws

This commit is contained in:
Gijs Kruitbosch 2013-06-06 21:30:37 +02:00
parent 9e83ecff03
commit 71e83db00e

View File

@ -99,7 +99,9 @@
if (id)
this._customizationTarget = document.getElementById(id);
if (!this._customizationTarget)
if (this._customizationTarget)
this._customizationTarget.insertItem = this.insertItem.bind(this);
else
this._customizationTarget = this;
return this._customizationTarget;