hoodiehq / hoodie-client

:dog: Client API for the Hoodie server
Apache License 2.0
34 stars 25 forks source link

Add hoodie.task API #10

Open gr2m opened 8 years ago

gr2m commented 8 years ago

Should be something like

var Task = require('hoodie-client-task')
// ...
api.task = new Task(api.id, { url: '/hoodie/account/api' })
bnb commented 8 years ago

Just a question (I know nothing about this code), is there a reason you're defining Task, but not calling it? You call .task, but that's a different variable, right?

gr2m commented 8 years ago

ohhh I made a mistake there, new Account should be new Task, thanks so much for asking :+1: I corrected it in my code above

gr2m commented 8 years ago

hoodie.task API is out of scope for upcoming Hoodie Tent release