From 45b1f779e8af5cef8a1b3ebff57d09efb2e2bb61 Mon Sep 17 00:00:00 2001 From: teramako Date: Sun, 18 Jan 2009 11:38:22 +0000 Subject: Pluginのinitializeをちょっと修正 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@28613 d0d07461-0603-4401-acd4-de1884942a52 --- pluginManager.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pluginManager.js') diff --git a/pluginManager.js b/pluginManager.js index fd67525..20d5ed6 100755 --- a/pluginManager.js +++ b/pluginManager.js @@ -180,7 +180,8 @@ Plugin.prototype = { // {{{ initialize: function(path, context){ this.path = path; this.name = context.NAME; - this.info = context.PLUGIN_INFO || {}; + this.info = context.PLUGIN_INFO || <>; + this.getItems(); }, getItems: function(){ if (this.items) return this.items; @@ -571,8 +572,8 @@ commands.addUserCommand(['plugin[help]'], 'list Vimperator plugins', context.title = ['PluginName', '[Version]Description']; context.completions = getPlugins().map(function(plugin) [ plugin.name, - '[' + (plugin.info.version || 'unknown') + ']' + - (plugin.info.description && tags.description(plugin.info) || '-') + '[' + (plugin.items.version || 'unknown') + ']' + + (plugin.items.description || '-') ]).filter(function(row) row[0].toLowerCase().indexOf(context.filter.toLowerCase()) >= 0); } -- cgit v1.2.3