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