Bug 970485 - Australis widget wrapper's anchor property for API-provided widgets causes exceptions, r=mikedeboer

--HG--
extra : rebase_source : 6566464caed0c4bf207e7f8b0d6bb0630f5aad7e
This commit is contained in:
Gijs Kruitbosch 2014-02-11 18:00:12 +00:00
parent 9df2447fa1
commit 45a56b61c0

View File

@ -3139,7 +3139,7 @@ function WidgetSingleWrapper(aWidget, aNode) {
this.__defineGetter__("anchor", function() { this.__defineGetter__("anchor", function() {
let anchorId; let anchorId;
// First check for an anchor for the area: // First check for an anchor for the area:
let placement = CustomizableUIInternal.getPlacementOfWidget(aWidgetId); let placement = CustomizableUIInternal.getPlacementOfWidget(aWidget.id);
if (placement) { if (placement) {
anchorId = gAreas.get(placement.area).get("anchor"); anchorId = gAreas.get(placement.area).get("anchor");
} }