rename module to preload images
This commit is contained in:
parent
b5ca1cf91e
commit
47f32679c1
@ -33,11 +33,11 @@
|
||||
*
|
||||
* ***** END LICENSE BLOCK ******/
|
||||
|
||||
const EXPORTED_SYMBOLS = ['TreeStyleTabImagePreloader'];
|
||||
const EXPORTED_SYMBOLS = ['TreeStyleTabThemeManager'];
|
||||
|
||||
Components.utils.import('resource://treestyletab-modules/utils.js');
|
||||
|
||||
var TreeStyleTabImagePreloader = {
|
||||
var TreeStyleTabThemeManager = {
|
||||
preLoadImagesForStyle : function(aStyle)
|
||||
{
|
||||
if (!aStyle ||
|
@ -46,10 +46,10 @@ XPCOMUtils.defineLazyGetter(this, 'TreeStyleTabBrowser', function() {
|
||||
Components.utils.import('resource://treestyletab-modules/browser.js', ns);
|
||||
return ns.TreeStyleTabBrowser;
|
||||
});
|
||||
XPCOMUtils.defineLazyGetter(this, 'TreeStyleTabImagePreloader', function() {
|
||||
XPCOMUtils.defineLazyGetter(this, 'TreeStyleTabThemeManager', function() {
|
||||
var ns = {};
|
||||
Components.utils.import('resource://treestyletab-modules/imagePreloader.js', ns);
|
||||
return ns.TreeStyleTabImagePreloader;
|
||||
Components.utils.import('resource://treestyletab-modules/themeManager.js', ns);
|
||||
return ns.TreeStyleTabThemeManager;
|
||||
});
|
||||
|
||||
function TreeStyleTabWindow(aWindow)
|
||||
@ -1570,7 +1570,7 @@ TreeStyleTabWindow.prototype = {
|
||||
|
||||
case 'extensions.treestyletab.tabbar.style':
|
||||
case 'extensions.treestyletab.tabbar.position':
|
||||
TreeStyleTabImagePreloader.preLoadImagesForStyle([
|
||||
TreeStyleTabThemeManager.preLoadImagesForStyle([
|
||||
this.getPref('extensions.treestyletab.tabbar.style'),
|
||||
this.position
|
||||
].join('-'));
|
||||
|
Loading…
Reference in New Issue
Block a user