mozilla

Compare Revisions

Using JavaScript code modules

Change Revisions

Revision 310381:

Revision 310381 by Hans.Hokke on

Revision 315957:

Revision 315957 by Wladimir_Palant on

Title:
Using JavaScript code modules
Using JavaScript code modules
Slug:
JavaScript_code_modules/Using
JavaScript_code_modules/Using
Tags:
"Extensions", "Add-ons", "XPCOM"
"Extensions", "Add-ons", "XPCOM"
Content:

Revision 310381
Revision 315957
n171Components.utils.import("<a class="external" href="resource://foon171Components.utils.import("resource://foo/bar.js");
>/bar.js" rel="freelink">resource://foo/bar.js</a>"); 
n180var ioService = Components.classes["@<a class="linkification-ext"n180var ioService = Components.classes["@mozilla.org/network/io-servi
> href="http://mozilla.org/network/io-service;1" title="Linkificat>ce;1"]
>ion: http://mozilla.org/network/io-service;1">mozilla.org/network 
>/io-service;1</a>"] 
t185var aliasFile = Components.classes["@<a class="linkification-ext"t185var aliasFile = Components.classes["@mozilla.org/file/local;1"]
> href="http://mozilla.org/file/local;1" title="Linkification: htt 
>p://mozilla.org/file/local;1">mozilla.org/file/local;1</a>"] 

Back to History