зеркало из https://github.com/mozilla/gecko-dev.git
Bug 949174/964375/952311 - Send panel JSON instead of just id in HomePanels:Remove (r=margaret)
This commit is contained in:
Родитель
4f5edb8d83
Коммит
785bae5bfc
|
@ -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)
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче