From f57774b0b7bc6105f232bbed0f6a0499b8f8aab7 Mon Sep 17 00:00:00 2001 From: anekos Date: Sat, 31 Jul 2010 08:42:11 +0000 Subject: around をもう少し慎重にした git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38076 d0d07461-0603-4401-acd4-de1884942a52 --- plugin_loader.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'plugin_loader.js') 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 { -- cgit v1.2.3