Bug 949174/964375/952311 - Send panel JSON instead of just id in HomePanels:Remove (r=margaret)

This commit is contained in:
Lucas Rocha 2014-02-05 14:14:52 +00:00
Родитель 4f5edb8d83
Коммит 785bae5bfc
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -232,11 +232,16 @@ let HomePanels = {
},
remove: function(id) {
if (!(id in this._panels)) {
throw "Home.panels: Panel doesn't exist: id = " + id;
}
let panel = this._panels[id];
delete this._panels[id];
sendMessageToJava({
type: "HomePanels:Remove",
id: id
panel: this._panelToJSON(panel)
});
},