Add exception handling to Fuse.Timer
Reported by Kit Goncharov | July 8th, 2009 @ 01:37 PM
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
});
Comments and changes to this ticket
-
Kit Goncharov July 8th, 2009 @ 01:38 PM
- State changed from new to open
- Assigned user changed from John-David Dalton to Kit Goncharov
-
Kit Goncharov July 17th, 2009 @ 09:48 PM
- Tag set to timer
-
Joe Gornick October 7th, 2009 @ 01:46 AM
- Milestone cleared.
- State changed from open to new
- Assigned user cleared.
-
Mark Caudill June 9th, 2010 @ 08:35 PM
- Assigned user set to Mark Caudill
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
JavaScript frameworks share similar features and functionality such as DOM manipulation, event registration, and CSS selector engines. FuseJS attempts to incorporate the strengths of these frameworks into one stable, efficient, and optimized core JavaScript framework.
People watching this ticket
Tags
Referenced by
- 26 Convert Timer interval to be milliseconds @JDD: OK, #35 covers exception handling.