This commit is contained in:
gavin%gavinsharp.com 2006-02-28 04:18:01 +00:00
Родитель 23d9dc7bc1
Коммит caa591b878
1 изменённых файлов: 5 добавлений и 4 удалений

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

@ -157,7 +157,7 @@
<method name="_initializeEngine">
<body><![CDATA[
var selectedEngineName = null;
var selectedEngineName;
try {
selectedEngineName =
this.prefService
@ -169,7 +169,8 @@
this.currentEngineName = selectedEngineName;
// check to see whether it failed
if (!this.currentEngine)
var engine = this.currentEngine;
if (!engine)
this.currentEngine = this.getDefaultEngine();
]]></body>
</method>
@ -249,12 +250,12 @@
var name = this.readRDFString(rEngine, kNC_Name);
if (name == aName) {
this.currentEngine = rEngine.Value;
this.parentNode.setAttribute("searchenginename", name);
this.parentNode.setAttribute('searchenginename', name);
return true;
}
}
this.currentEngine = null;
this.parentNode.removeAttribute("searchenginename")
this.parentNode.removeAttribute('searchenginename')
return false;
]]></body>
</method>