mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 207864 - Some things GetService "@mozilla.org/rdf/container;1", r=gavin
This commit is contained in:
parent
301a206b55
commit
b7b8f5503e
@ -54,7 +54,9 @@ function LoadAvailableCharSets()
|
||||
var kNC_Root = rdf.GetResource("NC:DecodersRoot");
|
||||
var kNC_name = rdf.GetResource("http://home.netscape.com/NC-rdf#Name");
|
||||
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);
|
||||
var availableCharsets = rdfContainer.GetElements();
|
||||
|
Loading…
Reference in New Issue
Block a user