Relanding bug 543444 - Replace single-view API with multiple observers. r=mak. sr=rstrong.

This commit is contained in:
Asaf Romano
2010-03-04 13:23:41 -08:00
parent abf1d4d953
commit 262a49f4f9
12 changed files with 961 additions and 1122 deletions

View File

@@ -422,7 +422,7 @@ var gSanitizePromptDialog = {
var view = gContiguousSelectionTreeHelper.setTree(this.placesTree,
new PlacesTreeView());
result.viewer = view;
result.addObserver(view, false);
this.initDurationDropdown();
},
@@ -529,8 +529,8 @@ var gSanitizePromptDialog = {
*/
unload: function ()
{
var view = this.placesTree.view;
view.QueryInterface(Ci.nsINavHistoryResultViewer).result.viewer = null;
let result = this.placesTree.getResult();
result.removeObserver(this.placesTree.view);
this.placesTree.view = null;
},