зеркало из https://github.com/mozilla/pjs.git
Revert accidental checkin.
This commit is contained in:
Родитель
23d9dc7bc1
Коммит
caa591b878
|
@ -157,7 +157,7 @@
|
||||||
|
|
||||||
<method name="_initializeEngine">
|
<method name="_initializeEngine">
|
||||||
<body><![CDATA[
|
<body><![CDATA[
|
||||||
var selectedEngineName = null;
|
var selectedEngineName;
|
||||||
try {
|
try {
|
||||||
selectedEngineName =
|
selectedEngineName =
|
||||||
this.prefService
|
this.prefService
|
||||||
|
@ -169,7 +169,8 @@
|
||||||
this.currentEngineName = selectedEngineName;
|
this.currentEngineName = selectedEngineName;
|
||||||
|
|
||||||
// check to see whether it failed
|
// check to see whether it failed
|
||||||
if (!this.currentEngine)
|
var engine = this.currentEngine;
|
||||||
|
if (!engine)
|
||||||
this.currentEngine = this.getDefaultEngine();
|
this.currentEngine = this.getDefaultEngine();
|
||||||
]]></body>
|
]]></body>
|
||||||
</method>
|
</method>
|
||||||
|
@ -249,12 +250,12 @@
|
||||||
var name = this.readRDFString(rEngine, kNC_Name);
|
var name = this.readRDFString(rEngine, kNC_Name);
|
||||||
if (name == aName) {
|
if (name == aName) {
|
||||||
this.currentEngine = rEngine.Value;
|
this.currentEngine = rEngine.Value;
|
||||||
this.parentNode.setAttribute("searchenginename", name);
|
this.parentNode.setAttribute('searchenginename', name);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.currentEngine = null;
|
this.currentEngine = null;
|
||||||
this.parentNode.removeAttribute("searchenginename")
|
this.parentNode.removeAttribute('searchenginename')
|
||||||
return false;
|
return false;
|
||||||
]]></body>
|
]]></body>
|
||||||
</method>
|
</method>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче