From 2dafed73288dd93b042baa9998469803b58cd654 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Wed, 12 Dec 2007 04:29:59 +0000 Subject: [PATCH] removed accidental alert() --- content/buffers.js | 1 - content/help.js | 20 ++++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/content/buffers.js b/content/buffers.js index da94106d..291a68d1 100644 --- a/content/buffers.js +++ b/content/buffers.js @@ -206,7 +206,6 @@ vimperator.Buffer = function () //{{{ lastInputField: null, // used to keep track of the right field for "gi" - get URL() { // TODO: .URL is not defined for XUL documents diff --git a/content/help.js b/content/help.js index 779c40ae..3f52ca3d 100644 --- a/content/help.js +++ b/content/help.js @@ -219,19 +219,19 @@ vimperator.help = function (section, easter) //{{{ try { - alert(doc.open()); + doc.open(); } catch (e) { -// dump("catched open\n"); -// // FIXME: what's this all about then, eh? Works the same for if it's removed. -- djk -// // when the url is "about:" or any other xhtml page the doc is not open -// // then retry again in 250ms but just once -// if (arguments[3] && arguments[3].recursive) -// return false; -// -// vimperator.open("about:blank"); -// setTimeout(function () { vimperator.help(section, false, null, { recursive: true }); }, 250); + dump("catched open\n"); + // FIXME: what's this all about then, eh? Works the same for if it's removed. -- djk + // when the url is "about:" or any other xhtml page the doc is not open + // then retry again in 250ms but just once + if (arguments[3] && arguments[3].recursive) + return false; + + vimperator.open("about:blank"); + setTimeout(function () { vimperator.help(section, false, null, { recursive: true }); }, 250); return; } dump("before write\n");