From 68ab7cc94b606aaa312297a6cde162bef46a3529 Mon Sep 17 00:00:00 2001 From: teramako Date: Wed, 19 Nov 2008 14:53:02 +0000 Subject: cosmetic change git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@24352 d0d07461-0603-4401-acd4-de1884942a52 --- copy.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'copy.js') diff --git a/copy.js b/copy.js index cfd9176..e42910c 100644 --- a/copy.js +++ b/copy.js @@ -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){ -- cgit v1.2.3