Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Add exception handling to Fuse.Timer

#35

Currently, Fuse.Timer just rethrows any errors when executing the callback. I'm thinking of adding a new option (a la Ajax.Request) for specifying a callback if an exception is encountered (if it's not specified, the error will just be rethrown):

//Old syntax
new Fuse.Timer({
    callback: function(timer){ ... },
    timeout: 10
});
//New syntax
new Fuse.Timer({
    //`onTimeout` seems more consistent with `onException` than `callback`...should we change it?
    onTimeout: function(timer){ ... },
    onException: function(exception, timer){ ... },
    timeout: 10
});

Reported by Kit Goncharov · July 8th, 2009 @ 01:37 PM

State: new
Milestone: none
Assigned to: Mark Caudill Mark Caudill

Activity

  1. Kit Goncharov
    Kit Goncharov
    • State changed from new to open
    • Assigned user changed from John-David Dalton to Kit Goncharov

    July 8th, 2009 @ 01:38 PM

  2. Kit Goncharov
  3. Joe Gornick
    Joe Gornick
    • Milestone cleared.
    • State changed from open to new
    • Assigned user cleared.

    October 7th, 2009 @ 01:46 AM

  4. Mark Caudill
    Mark Caudill
    • Assigned user set to Mark Caudill

    June 9th, 2010 @ 08:35 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.