1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 02:24:13 +01:00

Camel-case array#{iteritems,itervalues}.

This commit is contained in:
Doug Kearns
2010-09-26 11:54:28 +10:00
parent 883c0c367d
commit 87b29aa609
11 changed files with 22 additions and 22 deletions

View File

@@ -509,7 +509,7 @@ const Dactyl = Module("dactyl", {
// Find the tags in the document.
function addTags(file, doc) {
for (let elem in util.evaluateXPath("//@tag|//dactyl:tags/text()|//dactyl:tag/text()", doc))
for (let tag in array((elem.value || elem.textContent).split(/\s+/)).compact().itervalues())
for (let tag in array((elem.value || elem.textContent).split(/\s+/)).compact().iterValues())
tagMap[tag] = file;
}
@@ -592,7 +592,7 @@ const Dactyl = Module("dactyl", {
if (node instanceof HTMLHtmlElement)
data.push(" xmlns=" + XHTML.uri.quote());
for (let { name, value } in array.itervalues(node.attributes)) {
for (let { name, value } in array.iterValues(node.attributes)) {
if (name == "dactyl:highlight") {
name = "class";
value = "hl-" + value;