From 08c34e568814ea61f0b45b18678c9235ba24703c Mon Sep 17 00:00:00 2001 From: otsune Date: Wed, 29 Oct 2008 13:50:03 +0000 Subject: * arg -> arg.string * fix scope for current git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@22324 d0d07461-0603-4401-acd4-de1884942a52 --- tombloo.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tombloo.js') diff --git a/tombloo.js b/tombloo.js index 085287d..b71203f 100644 --- a/tombloo.js +++ b/tombloo.js @@ -41,7 +41,7 @@ function getContext(){ },{}),win.location); } -liberator.commands.addUserCommand(['tomblooAction'],'Execute Tombloo actions', +commands.addUserCommand(['tomblooAction'],'Execute Tombloo actions', function(arg){ TomblooService.Tombloo.Service.actions[arg].execute(); },{ @@ -55,9 +55,9 @@ liberator.commands.addUserCommand(['tomblooAction'],'Execute Tombloo actions', } ); -liberator.commands.addUserCommand(['tombloo'],'Post by Tombloo', +commands.addUserCommand(['tombloo'],'Post by Tombloo', function(arg,special){ - TomblooService.Tombloo.Service.share(getContext(),TomblooService.Tombloo.Service.extractors[arg],special); + TomblooService.Tombloo.Service.share(getContext(),TomblooService.Tombloo.Service.extractors[arg.string],special); },{ bang: true, completer: function(filter){ -- cgit v1.2.3