-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
I know you specifically state the class is for handling Async functions but I just ran in to this issue...
function aSync (val) {
var dfd = Ext.create ('Ext.ux.Deferred') ,
task;
if (val == 0)
dfd.reject('val cannot be zero!');
task = setInterval (function () {
// here your async task
clearInterval (task);
}, 1000);
return dfd;
}
aSync (0).fail (function (result) {
// this never gets called
});
I worked around it by wrapping the dfd.reject in a very short setTimeout.
Is there another way of doing this?
Metadata
Metadata
Assignees
Labels
No labels