From: John Foerch Date: Sat, 8 Dec 2012 01:34:50 +0000 (-0500) Subject: index-webjump: style, toString methods on classes X-Git-Tag: debian-1.0--pre-1+git160130-1~207 X-Git-Url: https://repo.or.cz/w/conkeror.git/commitdiff_plain/ebdd82e1c9e63cd60989e0ed291fb9ccfcc1237e index-webjump: style, toString methods on classes --- diff --git a/modules/index-webjump.js b/modules/index-webjump.js index 5efed01..b722a23 100644 --- a/modules/index-webjump.js +++ b/modules/index-webjump.js @@ -40,6 +40,7 @@ function index_webjump (key, url, file) { } index_webjump.prototype = { constructor: index_webjump, + toString: function () "#", mime_type: null, xpath_expr: null, make_completion: null, @@ -170,6 +171,8 @@ function index_webjump_xhtml (key, url, file, xpath_expr) { } index_webjump_xhtml.prototype = { constructor: index_webjump_xhtml, + __proto__: index_webjump.prototype, + toString: function () "#", require_completions: true, mime_type: "application/xhtml+xml", tidy_command: index_xpath_webjump_tidy_command, @@ -185,9 +188,7 @@ index_webjump_xhtml.prototype = { throw interactive_error("Completions required for " + this.key); return term; }; - }, - - __proto__: index_webjump.prototype + } } @@ -196,13 +197,14 @@ function index_webjump_gitweb (key, url, file) { } index_webjump_gitweb.prototype = { constructor: index_webjump_gitweb, + __proto__: index_webjump.prototype, + toString: function () "#", mime_type: "text/xml", xpath_expr: '//outline[@type="rss"]', make_completion: function (node) { var name = node.getAttribute("text"); return [name.replace(/\.git$/, ""), ""]; - }, - __proto__: index_webjump.prototype + } }