From dd5588f0a2a2218181fdcc2a43dd7b346043ae4d Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 27 Aug 2010 09:58:57 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=A9=E3=82=A4=E3=83=96=E3=83=A9=E3=83=AA?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7129 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- modules/animationManager.js | 3 ++- modules/autoScroll.js | 3 ++- modules/boxObject.js | 3 ++- modules/extensions.js | 3 ++- modules/prefs.js | 3 ++- modules/stringBundle.js | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/modules/animationManager.js b/modules/animationManager.js index bf5bffa8..50b28053 100644 --- a/modules/animationManager.js +++ b/modules/animationManager.js @@ -26,7 +26,8 @@ /* To work as a JS Code Module (*require jstimer.jsm) http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/jstimer.jsm */ -if (typeof window == 'undefined') { +if (typeof window == 'undefined' || + (window && typeof window.constructor == 'function')) { this.EXPORTED_SYMBOLS = ['animationManager']; // If namespace.jsm is available, export symbols to the shared namespace. diff --git a/modules/autoScroll.js b/modules/autoScroll.js index 095a730c..229b17fa 100644 --- a/modules/autoScroll.js +++ b/modules/autoScroll.js @@ -13,7 +13,8 @@ */ /* To work as a JS Code Module */ -if (typeof window == 'undefined') { +if (typeof window == 'undefined' || + (window && typeof window.constructor == 'function')) { this.EXPORTED_SYMBOLS = ['autoScroll']; // If namespace.jsm is available, export symbols to the shared namespace. diff --git a/modules/boxObject.js b/modules/boxObject.js index 019e7108..119611dd 100644 --- a/modules/boxObject.js +++ b/modules/boxObject.js @@ -16,7 +16,8 @@ */ /* To work as a JS Code Module */ -if (typeof window == 'undefined') { +if (typeof window == 'undefined' || + (window && typeof window.constructor == 'function')) { this.EXPORTED_SYMBOLS = ['boxObject']; // If namespace.jsm is available, export symbols to the shared namespace. diff --git a/modules/extensions.js b/modules/extensions.js index b66b40e6..74c4b7ab 100644 --- a/modules/extensions.js +++ b/modules/extensions.js @@ -27,7 +27,8 @@ */ /* To work as a JS Code Module */ -if (typeof window == 'undefined') { +if (typeof window == 'undefined' || + (window && typeof window.constructor == 'function')) { this.EXPORTED_SYMBOLS = ['extensions']; // If namespace.jsm is available, export symbols to the shared namespace. diff --git a/modules/prefs.js b/modules/prefs.js index 1d7d3ed0..41d3184c 100644 --- a/modules/prefs.js +++ b/modules/prefs.js @@ -27,7 +27,8 @@ */ /* To work as a JS Code Module */ -if (typeof window == 'undefined') { +if (typeof window == 'undefined' || + (window && typeof window.constructor == 'function')) { this.EXPORTED_SYMBOLS = ['prefs']; // If namespace.jsm is available, export symbols to the shared namespace. diff --git a/modules/stringBundle.js b/modules/stringBundle.js index 75322c87..a40e850f 100644 --- a/modules/stringBundle.js +++ b/modules/stringBundle.js @@ -15,7 +15,8 @@ */ /* To work as a JS Code Module */ -if (typeof window == 'undefined') { +if (typeof window == 'undefined' || + (window && typeof window.constructor == 'function')) { this.EXPORTED_SYMBOLS = ['stringBundle']; // If namespace.jsm is available, export symbols to the shared namespace.