hoodiehq / discussion

General discussions and questions about Hoodie
7 stars 1 forks source link

callback 4 life #70

Closed gabrielmancini closed 9 years ago

gabrielmancini commented 9 years ago

Hoodies,

There is a way to use Hoodie.JS with callbacks insted promisses ?

Cheers

zoepage commented 9 years ago

Why do you need to use callbacks? Is there a specific issue or... use case? :)

gabrielmancini commented 9 years ago

with callback i can wrap in jquery promise or angular promise or using async or q i choose the task flow.

zoepage commented 9 years ago

Like @gr2m already mentioned on IRC: "you'd need to make custom wrappers around the hoodie methods if you want callbacks. Hoodie does promises as they are more expressive and simpler to get started with, that's not going to change :)"