Bug 330887: Ts fix attempt #3, re-add timeout for search bar init, r+a=mconnor

This commit is contained in:
gavin%gavinsharp.com 2006-03-20 19:01:01 +00:00
Родитель e74933beab
Коммит e6e265e6b7
1 изменённых файлов: 14 добавлений и 8 удалений

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

@ -81,16 +81,22 @@
<implementation implements="nsIObserver">
<constructor><![CDATA[
// Refresh the display (updating icon, etc)
this.updateDisplay();
this.populatePopup();
var os =
Components.classes["@mozilla.org/observer-service;1"]
.getService(Components.interfaces.nsIObserverService);
os.addObserver(this, "browser-search-engine-modified", false);
setTimeout(function (a) { a.init(); }, 0, this);
]]></constructor>
<method name="init">
<body><![CDATA[
// Refresh the display (updating icon, etc)
this.updateDisplay();
this.populatePopup();
var os =
Components.classes["@mozilla.org/observer-service;1"]
.getService(Components.interfaces.nsIObserverService);
os.addObserver(this, "browser-search-engine-modified", false);
]]></body>
</method>
<destructor><![CDATA[
var os = Components.classes["@mozilla.org/observer-service;1"]
.getService(Components.interfaces.nsIObserverService);