rename module to preload images

This commit is contained in:
Piro / SHIMODA Hiroshi 2011-05-26 21:08:56 +09:00
parent b5ca1cf91e
commit 47f32679c1
2 changed files with 6 additions and 6 deletions

View File

@ -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 ||

View File

@ -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('-'));