From 4c8c8cd9279590518454d519d07652015e431b77 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Thu, 7 May 2015 22:36:56 +0200 Subject: [PATCH] docs: Don't refer to when.js before it's introduced --- docs/api/js.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/api/js.rst b/docs/api/js.rst index 62f7d438..6a8e0fcd 100644 --- a/docs/api/js.rst +++ b/docs/api/js.rst @@ -268,8 +268,9 @@ passing it as the second argument to ``done()``: .done(printCurrentTrack, console.error.bind(console)); If you don't hook up an error handler function and never call ``done()`` on the -promise object, when.js will log warnings to the console that you have -unhandled errors. In general, unhandled errors will not go silently missing. +promise object, warnings will be logged to the console complaining that you +have unhandled errors. In general, unhandled errors will not go silently +missing. The promise objects returned by Mopidy.js adheres to the `CommonJS Promises/A `_ standard. We use the