Skip to content

Commit 5d35057

Browse files
authored
Update modules/ROOT/pages/comments-callback-mode.adoc
1 parent ede3164 commit 5d35057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ROOT/pages/comments-callback-mode.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Callback mode provides the most flexibility for integrating with custom backend
1717

1818
All callback functions accept three parameters: a request object (or array for `+tinycomments_fetch+`), a `+done+` callback, and a `+fail+` callback. The function return type is not important, but all functions must call exactly one of these two callbacks: `+fail+` or `+done+`.
1919

20-
* The `+fail+` callback takes either a string or a JavaScript Error type to indicate an unrecoverable error.
20+
* The `+fail+` callback takes an argument specific to each function.
2121
* The `+done+` callback takes an argument specific to each function to indicate successful completion.
2222

2323
Most functions (create, reply, and edit) require an `+id+` identifying the current author. This can be provided directly within the callbacks or dynamically via the `+tinycomments_fetch_author_info+` option.

0 commit comments

Comments
 (0)