From 391f54d21c399d7013b691c3deb32c636143ba7b Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Thu, 18 Sep 2014 23:34:34 -0400 Subject: [PATCH] make signature doc consistent --- docs/mithril.deferred.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/mithril.deferred.md b/docs/mithril.deferred.md index de7303ab..b771cc29 100644 --- a/docs/mithril.deferred.md +++ b/docs/mithril.deferred.md @@ -225,6 +225,10 @@ where: This method passes a value to the `errorCallback` of the deferred object's child promise -- **static void onerror(Error e)** +- + + #### m.deferred.onerror + + **void onerror(Error e)** This method gets called every time an exception is thrown inside a promise callback. By default, it rethrows to the console if an error is a subclass of Error (but not an instance of Error itself). Otherwise it follows the Promises/A+ specifications. \ No newline at end of file