mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 18:32:25 +01:00
Remove dump statements and try-catch blocks
This commit is contained in:
@@ -866,14 +866,10 @@ function Completion() //{{{
|
|||||||
}
|
}
|
||||||
let filter = key + (string || "");
|
let filter = key + (string || "");
|
||||||
for (let [,obj] in Iterator(objects))
|
for (let [,obj] in Iterator(objects))
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
{
|
||||||
this.context.fork(obj[1], top[OFFSET], this, fill,
|
this.context.fork(obj[1], top[OFFSET], this, fill,
|
||||||
obj[0], obj[1], compl, compl != orig, filter, last, key.length);
|
obj[0], obj[1], compl, compl != orig, filter, last, key.length);
|
||||||
}
|
}
|
||||||
catch (e) { liberator.reportError(e) }
|
|
||||||
}
|
|
||||||
if (orig)
|
if (orig)
|
||||||
return;
|
return;
|
||||||
for (let [,obj] in Iterator(objects))
|
for (let [,obj] in Iterator(objects))
|
||||||
@@ -1153,7 +1149,6 @@ function Completion() //{{{
|
|||||||
context.format = bookmarks.format;
|
context.format = bookmarks.format;
|
||||||
context.completions = bookmarks.get(context.filter)
|
context.completions = bookmarks.get(context.filter)
|
||||||
context.filters = [];
|
context.filters = [];
|
||||||
liberator.dump(tags);
|
|
||||||
if (tags)
|
if (tags)
|
||||||
context.filters.push(function ({ item: item }) tags.every(function (tag) item.tags.indexOf(tag) > -1));
|
context.filters.push(function ({ item: item }) tags.every(function (tag) item.tags.indexOf(tag) > -1));
|
||||||
},
|
},
|
||||||
@@ -1519,7 +1514,6 @@ function Completion() //{{{
|
|||||||
bookmarks.getSuggestions(name, ctxt.filter, function (compl) {
|
bookmarks.getSuggestions(name, ctxt.filter, function (compl) {
|
||||||
ctxt.incomplete = false;
|
ctxt.incomplete = false;
|
||||||
ctxt.completions = compl;
|
ctxt.completions = compl;
|
||||||
liberator.dump(compl);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -395,11 +395,7 @@ let (array = util.Array)
|
|||||||
}
|
}
|
||||||
|
|
||||||
const styles = storage.newObject("styles", Styles, false);
|
const styles = storage.newObject("styles", Styles, false);
|
||||||
try
|
|
||||||
{
|
|
||||||
const highlight = storage.newObject("highlight", Highlights, false);
|
const highlight = storage.newObject("highlight", Highlights, false);
|
||||||
}
|
|
||||||
catch (e) { liberator.reportError(e) }
|
|
||||||
|
|
||||||
liberator.registerObserver("load_commands", function ()
|
liberator.registerObserver("load_commands", function ()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user