summaryrefslogtreecommitdiff
path: root/common/content/editor.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2010-10-11 16:45:12 -0400
committerKris Maglione <maglione.k@gmail.com>2010-10-11 16:45:12 -0400
commit2597be756aff509d67d8c5df7489f03874f01f70 (patch)
tree659cb6a40219b60a787f5c20450f9a44f6f62d84 /common/content/editor.js
parent7f2126179e62e06469fdf0f1b2dbb89705e195a1 (diff)
downloadpentadactyl-2597be756aff509d67d8c5df7489f03874f01f70.tar.gz
Fix completion list for functions that return augmented arrays.
Diffstat (limited to 'common/content/editor.js')
-rw-r--r--common/content/editor.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/content/editor.js b/common/content/editor.js
index b737a93a..a10e22bb 100644
--- a/common/content/editor.js
+++ b/common/content/editor.js
@@ -303,9 +303,7 @@ const Editor = Module("editor", {
if (!options["editor"])
return;
- let textBox = null;
- if (!(config.isComposeWindow))
- textBox = dactyl.focus;
+ let textBox = config.isComposeWindow ? null : dactyl.focus;
if (!forceEditing && textBox && textBox.type == "password") {
commandline.input("Editing a password field externally will reveal the password. Would you like to continue? (yes/[no]): ",