1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-10 17:35:46 +01:00

Normalise element related temporary variable names (elt -> elem).

This commit is contained in:
Doug Kearns
2008-12-30 23:34:05 +11:00
parent f7b110e45f
commit 0f0d26d504
2 changed files with 17 additions and 17 deletions

View File

@@ -458,14 +458,14 @@ function Events() //{{{
function isFormElemFocused()
{
let elt = window.document.commandDispatcher.focusedElement;
if (elt == null)
let elem = window.document.commandDispatcher.focusedElement;
if (elem == null)
return false;
try
{ // sometimes the elt doesn't have .localName
let tagname = elt.localName.toLowerCase();
let type = elt.type.toLowerCase();
{ // sometimes the elem doesn't have .localName
let tagname = elem.localName.toLowerCase();
let type = elem.type.toLowerCase();
if ((tagname == "input" && (type != "image")) ||
tagname == "textarea" ||