summaryrefslogtreecommitdiff
path: root/common/content
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/content
parent43421e863129030846479b8d3f187d9692e1d78e (diff)
downloadpentadactyl-2b52b7ee2df1501250772c56f36f78380e9e3924.tar.gz
Closes issue #667.
Diffstat (limited to 'common/content')
-rw-r--r--common/content/buffer.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/common/content/buffer.js b/common/content/buffer.js
index b41e81f9..fab4283e 100644
--- a/common/content/buffer.js
+++ b/common/content/buffer.js
@@ -2161,7 +2161,9 @@ var Buffer = Module("buffer", {
"code.google.com": '#nums [id^="nums_table"] a[href^="#"]',
"github.com": '.line_numbers>*',
"mxr.mozilla.org": 'a.l',
- "pastebin.com": '#code_frame>div>ol>li'
+ "pastebin.com": '#code_frame>div>ol>li',
+ "addons.mozilla.org": '.gutter>.line>a',
+ "*": '/* Hgweb/Gitweb */ .completecodeline a.codeline, a.linenr'
},
{
getLine: function getLine(doc, line) {
@@ -2191,12 +2193,12 @@ var Buffer = Module("buffer", {
return vals;
},
- validate: function validate(values) {
+ validator: function validate(values) {
return this.testValues(values, function (value) {
if (/^func:/.test(value))
return callable(dactyl.userEval("(" + Option.dequote(value.substr(5)) + ")"));
else
- return DOM.testMatcher(value);
+ return DOM.testMatcher(Option.dequote(value));
});
}
});