diff options
author | teramako | 2008-11-19 14:53:02 +0000 |
---|---|---|
committer | teramako | 2008-11-19 14:53:02 +0000 |
commit | 68ab7cc94b606aaa312297a6cde162bef46a3529 (patch) | |
tree | fd742361a22762963b84de8db75e45e99108c1e0 /copy.js | |
parent | 942dd8b8c7bc281cc3edb97b6d11e4e2c177a4e0 (diff) | |
download | vimperator-plugins-68ab7cc94b606aaa312297a6cde162bef46a3529.tar.bz2 |
cosmetic change
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@24352 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'copy.js')
-rw-r--r-- | copy.js | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -80,7 +80,7 @@ liberator.globalVariables.copy_templates.forEach(function(template){ //const defaultValue = templates[0].label; commands.addUserCommand(['copy'],'Copy to clipboard', function(args, special){ - liberator.plugins.exCopy.copy(args, special); + liberator.plugins.exCopy.copy(args.string, special); },{ completer: function(filter, special){ if (special){ @@ -143,8 +143,7 @@ var exCopyManager = { get: function(label){ return getCopyTemplate(label); }, - copy: function(args, special){ - var arg = args.string == undefined ? args: args.string; + copy: function(arg, special){ var copyString = ''; var isError = false; if (special && arg){ |