mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 05:25:46 +01:00
First attempt in making vimperator object orietened.
For now only the CommandLine widget was made a real encapsulated object.
This commit is contained in:
@@ -240,4 +240,37 @@ function Bookmarks()
|
||||
}
|
||||
|
||||
var bookmarks = new Bookmarks(); // FIXME, must it really be here? doesn't work in vimperator.js
|
||||
|
||||
|
||||
|
||||
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"));
|
||||
// var command_widget = document.getElementById('new-vim-commandbar');
|
||||
// logMessage(command_widget);
|
||||
//setTimeout(function() {logObject(vimperator)}, 1000);
|
||||
//Vimperator.echo("test");
|
||||
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.");
|
||||
}
|
||||
|
||||
|
||||
|
||||
// vim: set fdm=marker sw=4 ts=4 et:
|
||||
|
||||
Reference in New Issue
Block a user