summaryrefslogtreecommitdiff
path: root/common/content/mow.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-08-15 13:57:13 -0400
committerKris Maglione <maglione.k@gmail.com>2011-08-15 13:57:13 -0400
commit01fd946df1a7bd89528ec4c7cdfff9fde38d00ab (patch)
tree4e5857ec8d1acbccb306f1989229d250703ba609 /common/content/mow.js
parent9d87ed9454e5bd9950b70dd6171c7f8b2bcf955e (diff)
downloadpentadactyl-01fd946df1a7bd89528ec4c7cdfff9fde38d00ab.tar.gz
Add canceled property to DOM instances. Remove stray util.haveGecko call.
Diffstat (limited to 'common/content/mow.js')
-rw-r--r--common/content/mow.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/content/mow.js b/common/content/mow.js
index b02c00c9..391feeaf 100644
--- a/common/content/mow.js
+++ b/common/content/mow.js
@@ -294,7 +294,7 @@ var MOW = Module("mow", {
if (!value && elem && elem.contentWindow == document.commandDispatcher.focusedWindow) {
let focused = content.document.activeElement;
- if (Events.isInputElement(focused))
+ if (focused && Events.isInputElement(focused))
focused.blur();
document.commandDispatcher.focusedWindow = content;