From a96716c2d8021564dbe8b2c54b35bd25466f0c0f Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 4 Oct 2011 07:02:51 -0400 Subject: [PATCH] Fix caret mode bug. --- common/content/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/editor.js b/common/content/editor.js index 8735344f..7e83fd65 100644 --- a/common/content/editor.js +++ b/common/content/editor.js @@ -22,7 +22,7 @@ var Editor = Module("editor", { return elem.inputField || elem; let win = document.commandDispatcher.focusedWindow; - return DOM(win).isEditable && win; + return DOM(win).isEditable && win || null; }); },