From 145fedce44f686b270f857042853e0af4d85664d Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Thu, 3 Feb 2011 13:25:52 -0500 Subject: [PATCH] Closes issue #309. --- common/content/commandline.js | 2 -- common/modules/finder.jsm | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/common/content/commandline.js b/common/content/commandline.js index 2480522e..22e46b9d 100644 --- a/common/content/commandline.js +++ b/common/content/commandline.js @@ -843,13 +843,11 @@ var CommandLine = Module("commandline", { let output = []; function observe(str, highlight, dom) { - util.dumpStack(); output.push(dom && !isString(str) ? dom : str); } this.savingOutput = true; dactyl.trapErrors.apply(dactyl, [fn, self].concat(Array.slice(arguments, 2))); - util.dump(output); this.savingOutput = false; return output.map(function (elem) elem instanceof Node ? util.domToString(elem) : elem) .join("\n"); diff --git a/common/modules/finder.jsm b/common/modules/finder.jsm index eacd647c..b9ea7696 100644 --- a/common/modules/finder.jsm +++ b/common/modules/finder.jsm @@ -730,7 +730,10 @@ var RangeFind = Class("RangeFind", { }, nodeRange: function (node) { let range = node.ownerDocument.createRange(); - range.selectNode(node); + try { + range.selectNode(node); + } + catch (e) {} return range; }, sameDocument: function (r1, r2) r1 && r2 && r1.endContainer.ownerDocument == r2.endContainer.ownerDocument,