aboutsummaryrefslogtreecommitdiff
path: root/chrome/js/xpcom.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/js/xpcom.js')
-rw-r--r--chrome/js/xpcom.js30
1 files changed, 22 insertions, 8 deletions
diff --git a/chrome/js/xpcom.js b/chrome/js/xpcom.js
index 2d18ff3..6a9313d 100644
--- a/chrome/js/xpcom.js
+++ b/chrome/js/xpcom.js
@@ -1,4 +1,3 @@
-
Ci = Components.interfaces;
Cc = Components.classes;
Cr = Components.results;
@@ -25,10 +24,25 @@ const StringBundleService = Service("@mozilla.org/intl/stringbundle;1", "nsIStri
const ConsoleService = Service("@mozilla.org/consoleservice;1", "nsIConsoleService");
const PrefServie = Service("@mozilla.org/preferences-service;1", "nsIPrefService");
const DirectoryService = Service("@mozilla.org/file/directory_service;1", "nsIProperties");
-
-var EXPORTED_SYMBOLS = [];
-for (var name in this) {
- if (name != 'Service' && name != 'QueryInterface' && name != 'name' && name != 'EXPORTED_SYMBOLS') {
- EXPORTED_SYMBOLS.push(name);
- }
-}
+
+var EXPORTED_SYMBOLS = [
+ 'ServerSocket',
+ 'ScriptableInputStream',
+ 'FileInputStream',
+ 'ConverterInputStream',
+ 'FileOutputStream',
+ 'ConverterOutputStream',
+ 'LocalFile',
+ 'FilePicker',
+ 'FilePickerMode',
+ 'PromptService',
+ 'IOService',
+ 'LocaleService',
+ 'StringBundleService',
+ 'ConsoleService',
+ 'PrefServie',
+ 'DirectoryService',
+ 'Ci',
+ 'Cc',
+ 'Cr'
+];