1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 15:04:11 +01:00

Fix some of the more horrendous editor.js code.

--HG--
extra : rebase_source : 1675c92e880249d90a59576291254724fb863c4e
This commit is contained in:
Kris Maglione
2011-10-04 06:32:30 -04:00
parent f294668ad2
commit 8795c093f1
4 changed files with 140 additions and 119 deletions

View File

@@ -313,8 +313,7 @@ var Buffer = Module("Buffer", {
// Hack to deal with current versions of Firefox misplacing
// the caret
if (!overlay.getData(elem, "had-focus", false) &&
elem.value &&
if (!overlay.getData(elem, "had-focus", false) && elem.value &&
elem instanceof Ci.nsIDOMHTMLInputElement &&
DOM(elem).isEditable &&
elem.selectionStart != null &&