diff --git a/content/bookmarks.js b/content/bookmarks.js index 523da014..16b8e671 100644 --- a/content/bookmarks.js +++ b/content/bookmarks.js @@ -51,7 +51,7 @@ liberator.Bookmarks = function () //{{{ this.__defineGetter__("name", function () key); this.__defineGetter__("store", function () store); - this.__defineGetter__("bookmarks", function () { this.load(); return bookmarks }); + this.__defineGetter__("bookmarks", function () { this.load(); return bookmarks; }); this.__defineGetter__("keywords", function () [[k[2], k[1], k[0]] for each (k in self.bookmarks) if (k[2])]); @@ -71,7 +71,7 @@ liberator.Bookmarks = function () //{{{ itemId: id, uri: bookmarksService.getBookmarkURI(id).spec, title: bookmarksService.getItemTitle(id), - } + }; } function deleteBookmark(id) @@ -377,7 +377,7 @@ liberator.Bookmarks = function () //{{{ try { var uri = ioService.newURI(url, null, null); - return (bookmarksService.getBookmarkedURIFor(uri) != null) + return (bookmarksService.getBookmarkedURIFor(uri) != null); } catch (e) { @@ -533,7 +533,7 @@ liberator.Bookmarks = function () //{{{ destroy: function () { bookmarksService.removeObserver(observer, false); - }, + } }; //}}} }; //}}} @@ -994,7 +994,7 @@ liberator.QuickMarks = function () //{{{ list += ""; liberator.commandline.echo(list, liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE); - }, + } }; //}}} }; //}}} diff --git a/content/buffer.js b/content/buffer.js index 1919ec95..92e6c79d 100644 --- a/content/buffer.js +++ b/content/buffer.js @@ -351,7 +351,7 @@ liberator.Buffer = function () //{{{ let computedStyle = window.content.getComputedStyle(match, null); if (computedStyle.getPropertyValue("visibility") != "hidden" && computedStyle.getPropertyValue("display") != "none") - elements.push(match) + elements.push(match); } if (elements.length > 0) diff --git a/content/completion.js b/content/completion.js index 1ca272ec..acad5371 100644 --- a/content/completion.js +++ b/content/completion.js @@ -247,7 +247,7 @@ liberator.Completion = function () //{{{ mapped = files.map(function (file) [tail ? file.leafName : (dir + file.leafName), file.isDirectory() ? "Directory" : "File"]) - .sort(function (a, b) a[1].localeCompare(b[1]) || a[0].localeCompare(b[0])) + .sort(function (a, b) a[1].localeCompare(b[1]) || a[0].localeCompare(b[0])); } catch (e) { @@ -340,7 +340,7 @@ liberator.Completion = function () //{{{ macro: function (filter) { - var macros = [item for (item in liberator.events.getMacros())] + var macros = [item for (item in liberator.events.getMacros())]; return [0, liberator.completion.filter(macros, filter)]; }, @@ -411,7 +411,8 @@ liberator.Completion = function () //{{{ // unify split style sheets completions.forEach(function (stylesheet) { - for (let i = 0; i < completions.length; i++) { + for (let i = 0; i < completions.length; i++) + { if (stylesheet[0] == completions[i][0] && stylesheet[1] != completions[i][1]) { stylesheet[1] += ", " + completions[i][1]; diff --git a/content/editor.js b/content/editor.js index bab6218e..fea911f6 100644 --- a/content/editor.js +++ b/content/editor.js @@ -886,7 +886,7 @@ liberator.Editor = function () //{{{ (function () { textBox.style.backgroundColor = colors.shift(); if (colors.length > 0) - setTimeout(arguments.callee, timeout) + setTimeout(arguments.callee, timeout); })(); } diff --git a/content/io.js b/content/io.js index 51e60ad4..8aa687f6 100644 --- a/content/io.js +++ b/content/io.js @@ -438,7 +438,7 @@ liberator.IO = function () //{{{ var rcFile2 = ioManager.getFile("~/_" + liberator.config.name.toLowerCase() + "rc"); if (WINDOWS) - [rcFile1, rcFile2] = [rcFile2, rcFile1] + [rcFile1, rcFile2] = [rcFile2, rcFile1]; if (rcFile1.exists() && rcFile1.isFile()) return rcFile1; diff --git a/content/liberator.js b/content/liberator.js index 55e39f70..2f0718ea 100644 --- a/content/liberator.js +++ b/content/liberator.js @@ -896,7 +896,7 @@ const liberator = (function () //{{{ if (urls.length > 20 && !force) { liberator.commandline.input("This will open " + urls.length + " new tabs. Would you like to continue? (yes/[no])", - function (resp) { if (resp && resp.match(/^y(es)?$/i)) liberator.open(urls, where, true) }); + function (resp) { if (resp && resp.match(/^y(es)?$/i)) liberator.open(urls, where, true); }); return true; }