diff --git a/common/content/hints.js b/common/content/hints.js index c3a9e3d4..6b1989fc 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -1,6 +1,6 @@ // Copyright (c) 2006-2008 by Martin Stubenschrott // Copyright (c) 2007-2011 by Doug Kearns -// Copyright (c) 2008-2014 Kris Maglione +// Copyright (c) 2008-2015 Kris Maglione // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. @@ -545,7 +545,7 @@ var HintSession = Class("HintSession", CommandMode, { * hint disappears. */ removeHints: function _removeHints(timeout) { - for (let { doc, start, end } of values(this.docs)) { + for (let { doc, start, end } of this.docs) { DOM(doc.documentElement).highlight.remove("Hinting"); // Goddamn stupid fucking Gecko 1.x security manager bullshit. try { delete doc.dactylLabels; } catch (e) { doc.dactylLabels = undefined; } @@ -590,7 +590,7 @@ var HintSession = Class("HintSession", CommandMode, { let activeHint = this.hintNumber || 1; this.validHints = []; - for (let { doc, start, end } of values(this.docs)) { + for (let { doc, start, end } of this.docs) { DOM(doc.documentElement).highlight.add("Hinting"); let [offsetX, offsetY] = this.getContainerOffsets(doc); @@ -649,7 +649,7 @@ var HintSession = Class("HintSession", CommandMode, { if (options["usermode"]) { let css = []; - for (let hint of values(this.pageHints)) { + for (let hint of this.pageHints) { let selector = highlight.selector("Hint") + "[number=" + JSON.stringify(hint.span.getAttribute("number")) + "]"; let imgSpan = "[dactyl|hl=HintImage]"; css.push(selector + ":not(" + imgSpan + ") { " + hint.span.style.cssText + " }"); @@ -699,7 +699,7 @@ var HintSession = Class("HintSession", CommandMode, { updateValidNumbers: function updateValidNumbers(always) { let string = this.getHintString(this.hintNumber); - for (let hint of values(this.validHints)) + for (let hint of this.validHints) hint.valid = always || hint.span.getAttribute("number").startsWith(string); }, diff --git a/common/modules/buffer.jsm b/common/modules/buffer.jsm index e5a7722f..78108344 100644 --- a/common/modules/buffer.jsm +++ b/common/modules/buffer.jsm @@ -1111,7 +1111,7 @@ var Buffer = Module("Buffer", { // Ctrl-g single line output if (!verbose) { - let file = this.win.location.pathname.split("/").pop() || String(_("buffer.noName")); + let file = this.win.location.pathname.split("/").pop() || _("buffer.noName"); let title = this.win.document.title || _("buffer.noTitle"); let info = template.map( diff --git a/common/modules/messages.jsm b/common/modules/messages.jsm index 5d033578..b450170c 100644 --- a/common/modules/messages.jsm +++ b/common/modules/messages.jsm @@ -30,7 +30,8 @@ var Messages = Module("messages", { return self.get(message); }), valueOf: function valueOf() this.message, - toString: function toString() this.message + toString: function toString() this.message, + toJSON: function toJSON() this.message }); },