summaryrefslogtreecommitdiff
path: root/common/modules/dom.jsm
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-09-28 04:05:55 -0400
committerKris Maglione <maglione.k@gmail.com>2011-09-28 04:05:55 -0400
commit2b52b7ee2df1501250772c56f36f78380e9e3924 (patch)
tree0edff6768476f48400f488a0420fbed33f5fce91 /common/modules/dom.jsm
parent43421e863129030846479b8d3f187d9692e1d78e (diff)
downloadpentadactyl-2b52b7ee2df1501250772c56f36f78380e9e3924.tar.gz
Closes issue #667.
Diffstat (limited to 'common/modules/dom.jsm')
-rw-r--r--common/modules/dom.jsm10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/modules/dom.jsm b/common/modules/dom.jsm
index 3110ecb0..482b0214 100644
--- a/common/modules/dom.jsm
+++ b/common/modules/dom.jsm
@@ -1347,16 +1347,16 @@ var DOM = Class("DOM", {
* @returns {boolean} True when the patterns are all valid.
*/
validateMatcher: function validateMatcher(list) {
- let evaluator = services.XPathEvaluator();
- let node = services.XMLDocument();
- return this.testValues(list, this.closure.testMatcher);
+ return this.testValues(list, DOM.closure.testMatcher);
},
testMatcher: function testMatcher(value) {
+ let evaluator = services.XPathEvaluator();
+ let node = services.XMLDocument();
if (/^xpath:/.test(value))
- evaluator.createExpression(value.substr(6), DOM.XPath.resolver);
+ util.withProperErrors("createExpression", evaluator, value.substr(6), DOM.XPath.resolver);
else
- node.querySelector(value);
+ util.withProperErrors("querySelector", node, value);
return true;
},