mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-14 21:13:32 +01:00
add missing semicolons
This commit is contained in:
@@ -51,7 +51,7 @@ liberator.Bookmarks = function () //{{{
|
|||||||
|
|
||||||
this.__defineGetter__("name", function () key);
|
this.__defineGetter__("name", function () key);
|
||||||
this.__defineGetter__("store", function () store);
|
this.__defineGetter__("store", function () store);
|
||||||
this.__defineGetter__("bookmarks", function () { this.load(); return bookmarks });
|
this.__defineGetter__("bookmarks", function () { this.load(); return bookmarks; });
|
||||||
|
|
||||||
this.__defineGetter__("keywords",
|
this.__defineGetter__("keywords",
|
||||||
function () [[k[2], k[1], k[0]] for each (k in self.bookmarks) if (k[2])]);
|
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,
|
itemId: id,
|
||||||
uri: bookmarksService.getBookmarkURI(id).spec,
|
uri: bookmarksService.getBookmarkURI(id).spec,
|
||||||
title: bookmarksService.getItemTitle(id),
|
title: bookmarksService.getItemTitle(id),
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function deleteBookmark(id)
|
function deleteBookmark(id)
|
||||||
@@ -377,7 +377,7 @@ liberator.Bookmarks = function () //{{{
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
var uri = ioService.newURI(url, null, null);
|
var uri = ioService.newURI(url, null, null);
|
||||||
return (bookmarksService.getBookmarkedURIFor(uri) != null)
|
return (bookmarksService.getBookmarkedURIFor(uri) != null);
|
||||||
}
|
}
|
||||||
catch (e)
|
catch (e)
|
||||||
{
|
{
|
||||||
@@ -533,7 +533,7 @@ liberator.Bookmarks = function () //{{{
|
|||||||
destroy: function ()
|
destroy: function ()
|
||||||
{
|
{
|
||||||
bookmarksService.removeObserver(observer, false);
|
bookmarksService.removeObserver(observer, false);
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
//}}}
|
//}}}
|
||||||
}; //}}}
|
}; //}}}
|
||||||
@@ -994,7 +994,7 @@ liberator.QuickMarks = function () //{{{
|
|||||||
list += "</table>";
|
list += "</table>";
|
||||||
|
|
||||||
liberator.commandline.echo(list, liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE);
|
liberator.commandline.echo(list, liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE);
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
//}}}
|
//}}}
|
||||||
}; //}}}
|
}; //}}}
|
||||||
|
|||||||
@@ -351,7 +351,7 @@ liberator.Buffer = function () //{{{
|
|||||||
let computedStyle = window.content.getComputedStyle(match, null);
|
let computedStyle = window.content.getComputedStyle(match, null);
|
||||||
|
|
||||||
if (computedStyle.getPropertyValue("visibility") != "hidden" && computedStyle.getPropertyValue("display") != "none")
|
if (computedStyle.getPropertyValue("visibility") != "hidden" && computedStyle.getPropertyValue("display") != "none")
|
||||||
elements.push(match)
|
elements.push(match);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (elements.length > 0)
|
if (elements.length > 0)
|
||||||
|
|||||||
@@ -247,7 +247,7 @@ liberator.Completion = function () //{{{
|
|||||||
|
|
||||||
mapped = files.map(function (file) [tail ? file.leafName : (dir + file.leafName),
|
mapped = files.map(function (file) [tail ? file.leafName : (dir + file.leafName),
|
||||||
file.isDirectory() ? "Directory" : "File"])
|
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)
|
catch (e)
|
||||||
{
|
{
|
||||||
@@ -340,7 +340,7 @@ liberator.Completion = function () //{{{
|
|||||||
|
|
||||||
macro: function (filter)
|
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)];
|
return [0, liberator.completion.filter(macros, filter)];
|
||||||
},
|
},
|
||||||
@@ -411,7 +411,8 @@ liberator.Completion = function () //{{{
|
|||||||
|
|
||||||
// unify split style sheets
|
// unify split style sheets
|
||||||
completions.forEach(function (stylesheet) {
|
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])
|
if (stylesheet[0] == completions[i][0] && stylesheet[1] != completions[i][1])
|
||||||
{
|
{
|
||||||
stylesheet[1] += ", " + completions[i][1];
|
stylesheet[1] += ", " + completions[i][1];
|
||||||
|
|||||||
@@ -886,7 +886,7 @@ liberator.Editor = function () //{{{
|
|||||||
(function () {
|
(function () {
|
||||||
textBox.style.backgroundColor = colors.shift();
|
textBox.style.backgroundColor = colors.shift();
|
||||||
if (colors.length > 0)
|
if (colors.length > 0)
|
||||||
setTimeout(arguments.callee, timeout)
|
setTimeout(arguments.callee, timeout);
|
||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -438,7 +438,7 @@ liberator.IO = function () //{{{
|
|||||||
var rcFile2 = ioManager.getFile("~/_" + liberator.config.name.toLowerCase() + "rc");
|
var rcFile2 = ioManager.getFile("~/_" + liberator.config.name.toLowerCase() + "rc");
|
||||||
|
|
||||||
if (WINDOWS)
|
if (WINDOWS)
|
||||||
[rcFile1, rcFile2] = [rcFile2, rcFile1]
|
[rcFile1, rcFile2] = [rcFile2, rcFile1];
|
||||||
|
|
||||||
if (rcFile1.exists() && rcFile1.isFile())
|
if (rcFile1.exists() && rcFile1.isFile())
|
||||||
return rcFile1;
|
return rcFile1;
|
||||||
|
|||||||
@@ -896,7 +896,7 @@ const liberator = (function () //{{{
|
|||||||
if (urls.length > 20 && !force)
|
if (urls.length > 20 && !force)
|
||||||
{
|
{
|
||||||
liberator.commandline.input("This will open " + urls.length + " new tabs. Would you like to continue? (yes/[no])",
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user