mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-08 03:14:13 +01:00
Add missing semicolons.
--HG-- extra : rebase_source : 5fdc6c8e52b982ea4685d97cd7ccfeb184ec3851
This commit is contained in:
@@ -24,7 +24,7 @@ const Editor = Module("editor", {
|
||||
try {
|
||||
Editor.getEditor(null).selection[toEnd ? "collapseToEnd" : "collapseToStart"]();
|
||||
}
|
||||
catch (e) {};
|
||||
catch (e) {}
|
||||
},
|
||||
|
||||
selectedText: function () String(Editor.getEditor(null).selection),
|
||||
|
||||
@@ -813,7 +813,7 @@ Class.prototype = {
|
||||
*/
|
||||
timeout: function (callback, timeout) {
|
||||
const self = this;
|
||||
let notify = { notify: function notify(timer) { try { callback.apply(self) } catch (e) { util.reportError(e) } } };
|
||||
let notify = { notify: function notify(timer) { try { callback.apply(self); } catch (e) { util.reportError(e); } } };
|
||||
let timer = services.create("timer");
|
||||
timer.initWithCallback(notify, timeout || 0, timer.TYPE_ONE_SHOT);
|
||||
return timer;
|
||||
|
||||
Reference in New Issue
Block a user