Add the constant to cache 'Components.utils' to modules/utils.js.
This commit is contained in:
parent
05dd8078b3
commit
94067b8bf8
@ -39,21 +39,22 @@ let EXPORTED_SYMBOLS = ['TreeStyleTabUtils'];
|
||||
|
||||
const Cc = Components.classes;
|
||||
const Ci = Components.interfaces;
|
||||
const Cu = Components.utils;
|
||||
|
||||
Components.utils.import('resource://gre/modules/XPCOMUtils.jsm');
|
||||
Cu.import('resource://gre/modules/XPCOMUtils.jsm');
|
||||
|
||||
XPCOMUtils.defineLazyGetter(this, 'window', function() {
|
||||
Components.utils.import('resource://treestyletab-modules/lib/namespace.jsm');
|
||||
Cu.import('resource://treestyletab-modules/lib/namespace.jsm');
|
||||
return getNamespaceFor('piro.sakura.ne.jp');
|
||||
});
|
||||
|
||||
XPCOMUtils.defineLazyGetter(this, 'prefs', function() {
|
||||
Components.utils.import('resource://treestyletab-modules/lib/prefs.js');
|
||||
Cu.import('resource://treestyletab-modules/lib/prefs.js');
|
||||
return window['piro.sakura.ne.jp'].prefs;
|
||||
});
|
||||
|
||||
XPCOMUtils.defineLazyGetter(this, 'stringBundle', function() {
|
||||
Components.utils.import('resource://treestyletab-modules/lib/stringBundle.js', {});
|
||||
Cu.import('resource://treestyletab-modules/lib/stringBundle.js', {});
|
||||
return window['piro.sakura.ne.jp'].stringBundle;
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user