misoproject / dataset

JavaScript library that makes managing the data behind client-side visualisations easy
http://misoproject.com
GNU General Public License v2.0
1.18k stars 99 forks source link

Cannot access dataset deferred unless it's passed in. #131

Closed alexgraul closed 12 years ago

alexgraul commented 12 years ago

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 12 years ago

Will move deferred to instantiation from fetch