mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 09:17:59 +01:00
whitespace fixes
This commit is contained in:
@@ -693,8 +693,8 @@ liberator.Buffer = function () //{{{
|
|||||||
);
|
);
|
||||||
|
|
||||||
result.__iterator__ = asIterator
|
result.__iterator__ = asIterator
|
||||||
? function() { let elem; while((elem = this.iterateNext())) yield elem }
|
? function () { let elem; while ((elem = this.iterateNext())) yield elem; }
|
||||||
: function() { for(let i = 0; i < this.snapshotLength; i++) yield this.snapshotItem(i) };
|
: function () { for (let i = 0; i < this.snapshotLength; i++) yield this.snapshotItem(i); };
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -917,18 +917,18 @@ const liberator = (function () //{{{
|
|||||||
},
|
},
|
||||||
|
|
||||||
/* Not really ideal. I'd like open to do this. */
|
/* 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)
|
for each (let uri in uris)
|
||||||
liberator.open(uri, liberator.NEW_TAB);
|
liberator.open(uri, liberator.NEW_TAB);
|
||||||
}
|
}
|
||||||
if ((length || uris.length) > 50)
|
if ((length || uris.length) > 50)
|
||||||
liberator.commandline.input("This will open " + (length || uris.length) + " new tabs. Would you like to continue? (yes/[no])",
|
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
|
else
|
||||||
open();
|
open();
|
||||||
@@ -1049,7 +1049,7 @@ const liberator = (function () //{{{
|
|||||||
{
|
{
|
||||||
var files = liberator.io.readDirectory(pluginDir.path);
|
var files = liberator.io.readDirectory(pluginDir.path);
|
||||||
liberator.log("Sourcing plugin directory...", 3);
|
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))
|
if (!file.isDirectory() && /\.(js|vimp)$/i.test(file.path))
|
||||||
liberator.io.source(file.path, false);
|
liberator.io.source(file.path, false);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -240,13 +240,14 @@ liberator.modes = (function () //{{{
|
|||||||
this.show();
|
this.show();
|
||||||
},
|
},
|
||||||
|
|
||||||
push: function(mainMode, extendedMode, silent)
|
push: function (mainMode, extendedMode, silent)
|
||||||
{
|
{
|
||||||
modeStack.push([main, extended]);
|
modeStack.push([main, extended]);
|
||||||
this.set(mainMode, extendedMode, silent);
|
this.set(mainMode, extendedMode, silent);
|
||||||
},
|
},
|
||||||
|
|
||||||
pop: function() {
|
pop: function ()
|
||||||
|
{
|
||||||
var a = modeStack.pop();
|
var a = modeStack.pop();
|
||||||
if (a)
|
if (a)
|
||||||
[main, extended] = a;
|
[main, extended] = a;
|
||||||
|
|||||||
Reference in New Issue
Block a user