aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authormrmr19932017-10-29 12:51:53 +0000
committermrmr19932017-10-29 12:51:53 +0000
commit24148c709806d1631f35cd8efd3fdec4f2376f92 (patch)
treefd96638b8be4c57b25ebabfe35214fcb7f379b5b /content_scripts
parent3abee4d80699c1fade78af951efd23c1297d0be3 (diff)
downloadvimium-24148c709806d1631f35cd8efd3fdec4f2376f92.tar.bz2
Guard against undefined DomUtils, instead of stubbing in tests
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/mode_normal.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/content_scripts/mode_normal.coffee b/content_scripts/mode_normal.coffee
index 8dad4b63..ee05f4b0 100644
--- a/content_scripts/mode_normal.coffee
+++ b/content_scripts/mode_normal.coffee
@@ -214,7 +214,7 @@ textInputXPath = (->
"(" + textInputTypes.map((type) -> '@type="' + type + '"').join(" or ") + "or not(@type))" +
" and not(@disabled or @readonly)]",
"textarea", "*[@contenteditable='' or translate(@contenteditable, 'TRUE', 'true')='true']"]
- DomUtils.makeXPath(inputElements)
+ DomUtils?.makeXPath(inputElements)
)()
# used by the findAndFollow* functions.