1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 14:04:11 +01:00

Some smaller hint mode tweaks and fixes.

This commit is contained in:
Kris Maglione
2010-10-09 21:05:02 -04:00
parent d6e62a728d
commit 5e231dd571
2 changed files with 12 additions and 9 deletions

View File

@@ -816,7 +816,7 @@ Class.prototype = {
*/
timeout: function (callback, timeout) {
const self = this;
let notify = { notify: function notify(timer) { callback.apply(self) } };
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;