зеркало из https://github.com/mozilla/pjs.git
Revert accidental checkin.
This commit is contained in:
Родитель
23d9dc7bc1
Коммит
caa591b878
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче