mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 16:22:27 +01:00
whitespace fixes
This commit is contained in:
@@ -152,15 +152,15 @@ liberator.Bookmarks = function () //{{{
|
|||||||
},
|
},
|
||||||
onItemChanged: function (itemId, property, isAnnotation, value)
|
onItemChanged: function (itemId, property, isAnnotation, value)
|
||||||
{
|
{
|
||||||
if(isAnnotation)
|
if (isAnnotation)
|
||||||
return;
|
return;
|
||||||
// liberator.dump("onItemChanged(" + itemId + ", " + property + ", " + value + ")\n");
|
// liberator.dump("onItemChanged(" + itemId + ", " + property + ", " + value + ")\n");
|
||||||
var bookmark = bookmarks.filter(function (item) item[properties.id] == itemId)[0];
|
var bookmark = bookmarks.filter(function (item) item[properties.id] == itemId)[0];
|
||||||
if(bookmark)
|
if (bookmark)
|
||||||
{
|
{
|
||||||
if(property == "tags")
|
if (property == "tags")
|
||||||
value = taggingService.getTagsForURI(ioService.newURI(bookmark[properties.uri], null, null), {});
|
value = taggingService.getTagsForURI(ioService.newURI(bookmark[properties.uri], null, null), {});
|
||||||
if(property in properties)
|
if (property in properties)
|
||||||
bookmark[properties[property]] = value;
|
bookmark[properties[property]] = value;
|
||||||
liberator.storage.fireEvent(name, "change", itemId);
|
liberator.storage.fireEvent(name, "change", itemId);
|
||||||
}
|
}
|
||||||
@@ -178,7 +178,7 @@ liberator.Bookmarks = function () //{{{
|
|||||||
var cache = liberator.storage.newObject("bookmark-cache", Cache, false);
|
var cache = liberator.storage.newObject("bookmark-cache", Cache, false);
|
||||||
liberator.storage.addObserver("bookmark-cache", function (key, event, arg)
|
liberator.storage.addObserver("bookmark-cache", function (key, event, arg)
|
||||||
{
|
{
|
||||||
if(event == "add")
|
if (event == "add")
|
||||||
liberator.autocommands.trigger("BookmarkAdd", "");
|
liberator.autocommands.trigger("BookmarkAdd", "");
|
||||||
liberator.statusline.updateUrl();
|
liberator.statusline.updateUrl();
|
||||||
});
|
});
|
||||||
@@ -956,7 +956,7 @@ liberator.QuickMarks = function () //{{{
|
|||||||
|
|
||||||
list: function (filter)
|
list: function (filter)
|
||||||
{
|
{
|
||||||
var marks = [key for ([key,val] in qmarks)];
|
var marks = [key for ([key, val] in qmarks)];
|
||||||
// This was a lot nicer without the lambda...
|
// This was a lot nicer without the lambda...
|
||||||
var lowercaseMarks = marks.filter(function (x) /[a-z]/.test(x)).sort();
|
var lowercaseMarks = marks.filter(function (x) /[a-z]/.test(x)).sort();
|
||||||
var uppercaseMarks = marks.filter(function (x) /[A-Z]/.test(x)).sort();
|
var uppercaseMarks = marks.filter(function (x) /[A-Z]/.test(x)).sort();
|
||||||
|
|||||||
@@ -549,7 +549,7 @@ liberator.Completion = function () //{{{
|
|||||||
}
|
}
|
||||||
|
|
||||||
// filter on tags
|
// filter on tags
|
||||||
if(filterTags.some(function (tag) tag && tags.indexOf(tag) == -1))
|
if (filterTags.some(function (tag) tag && tags.indexOf(tag) == -1))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (url.indexOf(filter) == -1)
|
if (url.indexOf(filter) == -1)
|
||||||
|
|||||||
@@ -883,9 +883,9 @@ liberator.Editor = function () //{{{
|
|||||||
{
|
{
|
||||||
var timeout = 100;
|
var timeout = 100;
|
||||||
var colors = [tmpBg, oldBg, tmpBg, oldBg];
|
var colors = [tmpBg, oldBg, tmpBg, oldBg];
|
||||||
(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)
|
||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user