зеркало из https://github.com/mozilla/pjs.git
Bug 207864 - Some things GetService "@mozilla.org/rdf/container;1", r=gavin
This commit is contained in:
Родитель
839246f281
Коммит
39604cd0cb
|
@ -54,7 +54,9 @@ function LoadAvailableCharSets()
|
||||||
var kNC_Root = rdf.GetResource("NC:DecodersRoot");
|
var kNC_Root = rdf.GetResource("NC:DecodersRoot");
|
||||||
var kNC_name = rdf.GetResource("http://home.netscape.com/NC-rdf#Name");
|
var kNC_name = rdf.GetResource("http://home.netscape.com/NC-rdf#Name");
|
||||||
var rdfDataSource = rdf.GetDataSource("rdf:charset-menu");
|
var rdfDataSource = rdf.GetDataSource("rdf:charset-menu");
|
||||||
var rdfContainer = Components.classes["@mozilla.org/rdf/container;1"].getService(Components.interfaces.nsIRDFContainer);
|
var rdfContainer =
|
||||||
|
Components.classes["@mozilla.org/rdf/container;1"]
|
||||||
|
.createInstance(Components.interfaces.nsIRDFContainer);
|
||||||
|
|
||||||
rdfContainer.Init(rdfDataSource, kNC_Root);
|
rdfContainer.Init(rdfDataSource, kNC_Root);
|
||||||
var availableCharsets = rdfContainer.GetElements();
|
var availableCharsets = rdfContainer.GetElements();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче