So to be able to access to the deferred before fetch you need to manually pass it in
new Miso.Dataset({
data : ...,
deferred : new _.Deferred()
});
This works but is unnecessary. Deferred should be created on instantiation if not passed in and be accessible. This is needed as promise returned from fetch might be resolved before all its done handlers can be bound.
So to be able to access to the deferred before
fetch
you need to manually pass it inThis works but is unnecessary. Deferred should be created on instantiation if not passed in and be accessible. This is needed as promise returned from fetch might be resolved before all its done handlers can be bound.