From 47f32679c1720ad42490f9758d80017be1765b94 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Thu, 26 May 2011 21:08:56 +0900 Subject: [PATCH] rename module to preload images --- modules/{imagePreloader.js => themeManager.js} | 4 ++-- modules/window.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) rename modules/{imagePreloader.js => themeManager.js} (95%) diff --git a/modules/imagePreloader.js b/modules/themeManager.js similarity index 95% rename from modules/imagePreloader.js rename to modules/themeManager.js index bad24ec2..e790c374 100644 --- a/modules/imagePreloader.js +++ b/modules/themeManager.js @@ -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 || diff --git a/modules/window.js b/modules/window.js index 355cf237..1a534e5d 100644 --- a/modules/window.js +++ b/modules/window.js @@ -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('-'));