diff --git a/content/buffer.js b/content/buffer.js index bbbc27e6..291a5b5d 100644 --- a/content/buffer.js +++ b/content/buffer.js @@ -693,8 +693,8 @@ liberator.Buffer = function () //{{{ ); result.__iterator__ = asIterator - ? function() { let elem; while((elem = this.iterateNext())) yield elem } - : function() { for(let i = 0; i < this.snapshotLength; i++) yield this.snapshotItem(i) }; + ? function () { let elem; while ((elem = this.iterateNext())) yield elem; } + : function () { for (let i = 0; i < this.snapshotLength; i++) yield this.snapshotItem(i); }; return result; }, diff --git a/content/liberator.js b/content/liberator.js index acbc8e6c..702a3e7d 100644 --- a/content/liberator.js +++ b/content/liberator.js @@ -917,18 +917,18 @@ const liberator = (function () //{{{ }, /* Not really ideal. I'd like open to do this. */ - openTabs: function(uris, length) + openTabs: function (uris, length) { - let open = function() + let open = function () { for each (let uri in uris) liberator.open(uri, liberator.NEW_TAB); } if ((length || uris.length) > 50) liberator.commandline.input("This will open " + (length || uris.length) + " new tabs. Would you like to continue? (yes/[no])", - function(resp) { if(resp.match(/^y(es)?$/i)) open() }, + function (resp) { if (resp.match(/^y(es)?$/i)) open() }, { - completer: function(filter) [0, [["yes", "Open all in tabs"], ["no", "Cancel"]]], + completer: function (filter) [0, [["yes", "Open all in tabs"], ["no", "Cancel"]]], }); else open(); @@ -1049,7 +1049,7 @@ const liberator = (function () //{{{ { var files = liberator.io.readDirectory(pluginDir.path); liberator.log("Sourcing plugin directory...", 3); - files.sort(function(a, b) String(a.path).localeCompare(b.path)).forEach(function (file) { + files.sort(function (a, b) String(a.path).localeCompare(b.path)).forEach(function (file) { if (!file.isDirectory() && /\.(js|vimp)$/i.test(file.path)) liberator.io.source(file.path, false); }); diff --git a/content/modes.js b/content/modes.js index d2330e26..ced9ca3c 100644 --- a/content/modes.js +++ b/content/modes.js @@ -240,13 +240,14 @@ liberator.modes = (function () //{{{ this.show(); }, - push: function(mainMode, extendedMode, silent) + push: function (mainMode, extendedMode, silent) { modeStack.push([main, extended]); this.set(mainMode, extendedMode, silent); }, - pop: function() { + pop: function () + { var a = modeStack.pop(); if (a) [main, extended] = a;