1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 22:37:58 +01:00

refactored some yanking code

This commit is contained in:
Martin Stubenschrott
2008-01-05 23:31:07 +00:00
parent 642ac2ba27
commit 43038f7566
5 changed files with 13 additions and 28 deletions

View File

@@ -392,20 +392,6 @@ vimperator.Buffer = function () //{{{
elem.dispatchEvent(evt);
},
yankElementText: function (elem)
{
var text = elem.textContent || "";
vimperator.copyToClipboard(text);
vimperator.echo("Yanked " + text, vimperator.commandline.FORCE_SINGLELINE);
},
yankElementLocation: function (elem)
{
var loc = elem.href || "";
vimperator.copyToClipboard(loc);
vimperator.echo("Yanked " + loc, vimperator.commandline.FORCE_SINGLELINE);
},
saveLink: function (elem, skipPrompt)
{
var doc = elem.ownerDocument;