1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-01 17:42:25 +01:00

moved log and logObject into the vimperator object

This commit is contained in:
Martin Stubenschrott
2007-06-19 23:01:11 +00:00
parent d777d745fd
commit 89d629e5e2
6 changed files with 68 additions and 61 deletions

View File

@@ -261,7 +261,6 @@ function Bookmarks()
}
return res;
}
logMessage("Bookmarks initialized");
}
function History()
@@ -334,48 +333,15 @@ function History()
if(!history)
load();
// XXX: check if fast enough
history = history.filter(function(elem) {
return elem[0] != url;
});
// for(var i in history)
// {
// if(history[i][0] == url)
// return;
// }
history.unshift([url, title]);
//history.push([url, title]);
return true;
};
logMessage("History initialized");
}
/*Vimperator.prototype.quickmarks = new function()
{
//logObject(vimperator);
//setTimeout(function() {logObject(vimperator)}, 1000);
//Vimperator.echo("test");
//alert(vimperator.getpr("hinttags"));
this.add = function() { alert('add');};
this.rem = function() { vimperator.echo("rem"); logObject(vimperator)};
logMessage("quickmarks initialized.");
}
function QM()
{
//logObject(vimperator);
//logMessage(vimperator.getpr("complete"));
this.add = function() { alert('add');};
this.rem = function() { vimperator.echo("rem"); logObject(vimperator)};
this.zoom = function() { vimperator.zoom_to(200); logObject(vimperator)};
logMessage("QM initialized.");
}*/
function Marks()
{