does the article I put the link to predate catch being added to the spec?


On Thu, Jan 16, 2014 at 7:41 PM, Nolan Lawson <notifications@github.com>wrote:

> In docs/api.md:
>
> > @@ -149,6 +163,15 @@ db.get('mydoc', function(err, doc) {
> >  });
> >  {% endhighlight %}
> >
> > +### With Promises:
> > +{% highlight js %}
> > +db.get('mydoc').then(function(doc) {
> > +  return db.remove(doc);
> > +}).catch(function(e){
> > +  //errors
> > +});
> > +{% endhighlight %}
> > +
>
> This is cool. I've not yet used a promise library with catch, so that's
> really nice sugar. Maybe add a line above saying "Promises are provided by
> lie <https://github.com/calvinmetcalf/lie>", then a note in the lie
> readme about catch?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/daleharvey/pouchdb/pull/1228/files#r8953922>
> .
>



-- 
-Calvin W. Metcalf