misoproject/dataset

Cannot access dataset deferred unless it's passed in.

Closed this issue · 1 comments

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.

iros commented

Will move deferred to instantiation from fetch