summaryrefslogtreecommitdiff
path: root/common/content/dactyl.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2012-12-17 19:27:53 -0800
committerKris Maglione <maglione.k@gmail.com>2012-12-17 19:27:53 -0800
commit6ee5b2ca2649bf50ac67bb493100507779ff6a23 (patch)
tree286829ba5903b79cdb011c267a25f62a6556fc3e /common/content/dactyl.js
parent3f483de547a9617a6af68cb7bc9ed265ece36683 (diff)
downloadpentadactyl-6ee5b2ca2649bf50ac67bb493100507779ff6a23.tar.gz
Death to E4X and stuff.
Diffstat (limited to 'common/content/dactyl.js')
-rw-r--r--common/content/dactyl.js19
1 files changed, 2 insertions, 17 deletions
diff --git a/common/content/dactyl.js b/common/content/dactyl.js
index 749da080..e3bf2495 100644
--- a/common/content/dactyl.js
+++ b/common/content/dactyl.js
@@ -4,7 +4,7 @@
//
// This work is licensed for reuse under an MIT license. Details are
// given in the LICENSE.txt file included with this file.
-// "use strict";
+"use strict";
/** @scope modules */
@@ -1215,22 +1215,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
for (let [, context] in Iterator(plugins.contexts))
try {
let info = contexts.getDocs(context);
- if (info instanceof XML) {
- if (info.*.@lang.length()) {
- let lang = config.bestLocale(String(a) for each (a in info.*.@lang));
-
- info.* = info.*.(function::attribute("lang").length() == 0 || @lang == lang);
-
- for each (let elem in info.NS::info)
- for (let attr in values(["@name", "@summary", "@href"]))
- if (elem[attr].length())
- info[attr] = elem[attr];
- }
- body.push(["h2", { xmlns: "dactyl", tag: info.@name + '-plugin' },
- String(info.@summary)]);
- body.push(info);
- }
- else if (DOM.isJSONXML(info)) {
+ if (DOM.isJSONXML(info)) {
let langs = info.slice(2).filter(function (e) isArray(e) && isObject(e[1]) && e[1].lang);
if (langs) {
let lang = config.bestLocale(l[1].lang for each (l in langs));