From a911cadb760f2880150898f4830ff4bfebe48d53 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Mon, 2 Jul 2007 11:34:00 +0000 Subject: [PATCH] move global restart() command to a vimperator slot --- chrome/content/vimperator/commands.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/vimperator/commands.js b/chrome/content/vimperator/commands.js index fa74f87d..55201bf2 100644 --- a/chrome/content/vimperator/commands.js +++ b/chrome/content/vimperator/commands.js @@ -617,7 +617,7 @@ function Commands() //{{{ } )); addDefaultCommand(new Command(["res[tart]"], - restart, + function() { vimperator.restart(); }, { usage: ["res[tart]"], short_help: "Force the browser to restart", @@ -1582,7 +1582,7 @@ function reload_all(bypass_cache) } } -function restart() +Vimperator.prototype.restart = function() { // if (!arguments[1]) return; const nsIAppStartup = Components.interfaces.nsIAppStartup;