From c5487aa9a05d7746292780491f4730ed1d113e72 Mon Sep 17 00:00:00 2001 From: amansheim-bm-net Date: Tue, 16 Jul 2019 10:35:48 -0400 Subject: [PATCH] jQuery did get it right, but it took five years. --- docs/docs/anti-patterns.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/anti-patterns.md b/docs/docs/anti-patterns.md index 73ba88784..d1abfa7fd 100644 --- a/docs/docs/anti-patterns.md +++ b/docs/docs/anti-patterns.md @@ -169,4 +169,4 @@ doThat() }); ``` -`.catch` is specified for built-in Javascript promises and is "sugar" for `.then(null, function(){})`. Since the way errors work in promises is almost the entire point (and the only thing jQuery never got right, even if it used `.pipe` as a `.then`), I really hope the implementation you are using provides this method for readability. +`.catch` is specified for built-in Javascript promises and is "sugar" for `.then(null, function(){})`. Since the way errors work in promises is almost the entire point (and the only thing jQuery took five years to get right, even if it used `.pipe` as a `.then` as early as mid-2011), I really hope the implementation you are using provides this method for readability.