mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 19:33:18 +00:00
Remove observer in destructor. r/sr=hewitt
This commit is contained in:
parent
bbb7ffba72
commit
c99a425989
@ -77,7 +77,8 @@ function Shutdown ()
|
||||
win.setAttribute("height", outerHeight);
|
||||
win.setAttribute("width", outerWidth);
|
||||
|
||||
gBookmarksShell.flushDataSource();
|
||||
var bookmarksView = document.getElementById("bookmarks-view");
|
||||
bookmarksView.flushBMDatasource();
|
||||
}
|
||||
|
||||
function updateSendLinkItem()
|
||||
|
@ -95,6 +95,9 @@
|
||||
this._bundle = stringBundleService.createBundle(bundleURL, localeService.GetApplicationLocale());
|
||||
setTimeout(this.refreshSort, 0, this);
|
||||
]]></constructor>
|
||||
<destructor><![CDATA[
|
||||
this.outlinerBuilder.removeObserver(this.builderObserver);
|
||||
]]></destructor>
|
||||
|
||||
<property name="outlinerBoxObject">
|
||||
<getter><![CDATA[
|
||||
|
Loading…
Reference in New Issue
Block a user