ライブラリ更新

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6695 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-06-23 01:32:31 +00:00
parent 7a330f5b35
commit 8fb2c681db
6 changed files with 37 additions and 31 deletions

View File

@ -24,13 +24,15 @@
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/animationManager.js http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/animationManager.js
*/ */
if ('window' in this && !window) { // work as a JS Code Module /* To work as a JS Code Module (*require namespace.jsm and jstimer.jsm)
var EXPORTED_SYMBOLS = ['window', 'animationManager']; http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/namespace.jsm
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/jstimer.jsm */
if (typeof window == 'undefined') {
this.EXPORTED_SYMBOLS = ['animationManager'];
let ns = {}; let ns = {};
Components.utils.import('resource://treestyletab-modules/namespace.jsm', ns); Components.utils.import('resource://treestyletab-modules/namespace.jsm', ns);
/* var */ window = ns.getNamespaceFor('piro.sakura.ne.jp');
var window = ns.getNamespaceFor('piro.sakura.ne.jp');
if (!('setInterval' in window)) if (!('setInterval' in window))
Components.utils.import('resource://treestyletab-modules/jstimer.jsm', window); Components.utils.import('resource://treestyletab-modules/jstimer.jsm', window);
} }
@ -150,5 +152,5 @@ if ('window' in this && !window) { // work as a JS Code Module
})(); })();
if (window != this) { // work as a JS Code Module if (window != this) { // work as a JS Code Module
var animationManager = window['piro.sakura.ne.jp'].animationManager; this.animationManager = window['piro.sakura.ne.jp'].animationManager;
} }

View File

@ -12,13 +12,14 @@
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/autoScroll.js http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/autoScroll.js
*/ */
if ('window' in this && !window) { // work as a JS Code Module /* To work as a JS Code Module (*require namespace.jsm)
var EXPORTED_SYMBOLS = ['window', 'autoScroll']; http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/namespace.jsm */
if (typeof window == 'undefined') {
this.EXPORTED_SYMBOLS = ['autoScroll'];
let ns = {}; let ns = {};
Components.utils.import('resource://treestyletab-modules/namespace.jsm', ns); Components.utils.import('resource://treestyletab-modules/namespace.jsm', ns);
/* var */ window = ns.getNamespaceFor('piro.sakura.ne.jp');
var window = ns.getNamespaceFor('piro.sakura.ne.jp');
} }
(function() { (function() {
@ -172,5 +173,5 @@ if ('window' in this && !window) { // work as a JS Code Module
})(); })();
if (window != this) { // work as a JS Code Module if (window != this) { // work as a JS Code Module
var autoScroll = window['piro.sakura.ne.jp'].autoScroll; this.autoScroll = window['piro.sakura.ne.jp'].autoScroll;
} }

View File

@ -13,13 +13,14 @@
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/boxObject.js http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/boxObject.js
*/ */
if ('window' in this && !window) { // work as a JS Code Module /* To work as a JS Code Module (*require namespace.jsm)
var EXPORTED_SYMBOLS = ['window', 'boxObject']; http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/namespace.jsm */
if (typeof window == 'undefined') {
this.EXPORTED_SYMBOLS = ['boxObject'];
let ns = {}; let ns = {};
Components.utils.import('resource://treestyletab-modules/namespace.jsm', ns); Components.utils.import('resource://treestyletab-modules/namespace.jsm', ns);
/* var */ window = ns.getNamespaceFor('piro.sakura.ne.jp');
var window = ns.getNamespaceFor('piro.sakura.ne.jp');
} }
(function() { (function() {
@ -166,5 +167,5 @@ if ('window' in this && !window) { // work as a JS Code Module
})(); })();
if (window != this) { // work as a JS Code Module if (window != this) { // work as a JS Code Module
var boxObject = window['piro.sakura.ne.jp'].boxObject; this.boxObject = window['piro.sakura.ne.jp'].boxObject;
} }

View File

@ -16,13 +16,14 @@
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/extensions.js http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/extensions.js
*/ */
if ('window' in this && !window) { // work as a JS Code Module /* To work as a JS Code Module (*require namespace.jsm)
var EXPORTED_SYMBOLS = ['window', 'extensions']; http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/namespace.jsm */
if (typeof window == 'undefined') {
this.EXPORTED_SYMBOLS = ['extensions'];
let ns = {}; let ns = {};
Components.utils.import('resource://treestyletab-modules/namespace.jsm', ns); Components.utils.import('resource://treestyletab-modules/namespace.jsm', ns);
/* var */ window = ns.getNamespaceFor('piro.sakura.ne.jp');
var window = ns.getNamespaceFor('piro.sakura.ne.jp');
} }
(function() { (function() {
@ -193,5 +194,5 @@ if ('window' in this && !window) { // work as a JS Code Module
})(); })();
if (window != this) { // work as a JS Code Module if (window != this) { // work as a JS Code Module
var extensions = window['piro.sakura.ne.jp'].extensions; this.extensions = window['piro.sakura.ne.jp'].extensions;
} }

View File

@ -26,13 +26,14 @@
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/prefs.test.js http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/prefs.test.js
*/ */
if ('window' in this && !window) { // work as a JS Code Module /* To work as a JS Code Module (*require namespace.jsm)
var EXPORTED_SYMBOLS = ['window', 'prefs']; http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/namespace.jsm */
if (typeof window == 'undefined') {
this.EXPORTED_SYMBOLS = ['prefs'];
let ns = {}; let ns = {};
Components.utils.import('resource://treestyletab-modules/namespace.jsm', ns); Components.utils.import('resource://treestyletab-modules/namespace.jsm', ns);
/* var */ window = ns.getNamespaceFor('piro.sakura.ne.jp');
var window = ns.getNamespaceFor('piro.sakura.ne.jp');
} }
(function() { (function() {
@ -163,6 +164,5 @@ if ('window' in this && !window) { // work as a JS Code Module
}; };
})(); })();
if (window != this) { // work as a JS Code Module if (this.prefs = window['piro.sakura.ne.jp'].prefs;
var prefs = window['piro.sakura.ne.jp'].prefs;
} }

View File

@ -14,13 +14,14 @@
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/stringBundle.js http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/stringBundle.js
*/ */
if ('window' in this && !window) { // work as a JS Code Module /* To work as a JS Code Module (*require namespace.jsm)
var EXPORTED_SYMBOLS = ['window', 'stringBundle']; http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/namespace.jsm */
if (typeof window == 'undefined') {
this.EXPORTED_SYMBOLS = ['stringBundle'];
let ns = {}; let ns = {};
Components.utils.import('resource://treestyletab-modules/namespace.jsm', ns); Components.utils.import('resource://treestyletab-modules/namespace.jsm', ns);
/* var */ window = ns.getNamespaceFor('piro.sakura.ne.jp');
var window = ns.getNamespaceFor('piro.sakura.ne.jp');
} }
(function() { (function() {
@ -82,5 +83,5 @@ if ('window' in this && !window) { // work as a JS Code Module
})(); })();
if (window != this) { // work as a JS Code Module if (window != this) { // work as a JS Code Module
var stringBundle = window['piro.sakura.ne.jp'].stringBundle; this.stringBundle = window['piro.sakura.ne.jp'].stringBundle;
} }