diff options
author | anekos | 2010-07-31 08:42:11 +0000 |
---|---|---|
committer | anekos | 2010-07-31 08:42:11 +0000 |
commit | f57774b0b7bc6105f232bbed0f6a0499b8f8aab7 (patch) | |
tree | afc9b26b5791bb4feed8c49b280e4f1a954a168f | |
parent | faf856ba8e45de1d725d01e7e0bb27a1ae236ea2 (diff) | |
download | vimperator-plugins-f57774b0b7bc6105f232bbed0f6a0499b8f8aab7.tar.bz2 |
around をもう少し慎重にした
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38076 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | plugin_loader.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugin_loader.js b/plugin_loader.js index 675bcd3..f0c4ac6 100644 --- a/plugin_loader.js +++ b/plugin_loader.js @@ -71,6 +71,9 @@ let PLUGIN_INFO = } function around () { + if (!liberator.plugins.libly) + return false; + liberator.plugins.libly.$U.around( io, 'getRuntimeDirectories', @@ -90,6 +93,7 @@ let PLUGIN_INFO = return dirs; } ); + return true; } let roots = toArray(liberator.globalVariables.plugin_loader_roots).map(io.expandPath); @@ -118,10 +122,8 @@ let PLUGIN_INFO = } else { liberator.echoerr('plugin_loader.js: context not found (' + file.path + ')'); } - if (!arounded && file.leafName === '_libly.js') { - arounded = true; - around(); - } + if (!arounded && file.leafName === '_libly.js') + arounded = around(); } }); } else { |