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