aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_loader.js
diff options
context:
space:
mode:
authoranekos2008-10-20 11:02:46 +0000
committeranekos2008-10-20 11:02:46 +0000
commitf50bc1b9efc0685e842b8b68370c26c17227f763 (patch)
tree83b656fef5a3209674cad34e3abe43d57ebaf701 /plugin_loader.js
parent1bbcbf14b54e8dc0d6b57ab0cc32836ee28b46cf (diff)
downloadvimperator-plugins-f50bc1b9efc0685e842b8b68370c26c17227f763.tar.bz2
Vimperator の仕様変更に対応。
for 69f699080c10 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@21699 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'plugin_loader.js')
-rw-r--r--plugin_loader.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugin_loader.js b/plugin_loader.js
index c9c36b0..7cdd96c 100644
--- a/plugin_loader.js
+++ b/plugin_loader.js
@@ -2,7 +2,7 @@
// @name Plugin Loader
// @description-ja 指定(ディレクトリ|プラグイン)を起動時にロードする
// @license Creative Commons 2.1 (Attribution + Share Alike)
-// @version 2.2
+// @version 2.3
// @author anekos
// ==/VimperatorPlugin==
//
@@ -23,22 +23,22 @@
: obj.toString().split(/[,| \t\r\n]+/);
}
- let roots = toArray(globalVariables.plugin_loader_roots);
- let plugins = toArray(globalVariables.plugin_loader_plugins);
+ let roots = toArray(liberator.globalVariables.plugin_loader_roots);
+ let plugins = toArray(liberator.globalVariables.plugin_loader_plugins);
let filter = new RegExp('[\\\\/](?:' +
plugins.map(function (plugin) plugin.replace(/(?=[\\^$.+*?|(){}\[\]])/g, '\\'))
.join('|') +
')\\.(?:js|vimp)$');
- log('plugin_loader: loading');
+ liberator.log('plugin_loader: loading');
roots.forEach(function (root) {
let files = io.readDirectory(io.getFile(root), true);
files.forEach(function (file) {
if (filter.test(file.path))
- liberator.io.source(file.path, false);
+ io.source(file.path, false);
});
});
- log('plugin_loader: loaded');
+ liberator.log('plugin_loader: loaded');
}