doc: minor syntax changes about async comments loading

This commit is contained in:
Rocka 2018-07-27 10:44:02 +08:00
parent 61b3b69557
commit 858d64d092
No known key found for this signature in database
GPG Key ID: 28031158FFDD6853

View File

@ -37,10 +37,10 @@ comment thread:
window.Isso.fetchComments()
It will delete all comments under the thread but not the PostBox, fetch
comments with `data-isso-id` attribute of element `section#isso-thread` (if that
attribute not exists, fallback to `window.location.pathname`), then fill
comments into the thread. In other words, you should change `data-isso-id`
attribute of element `section#isso-thread` (or modify the pathname with
comments with `data-isso-id` attribute of the element `section#isso-thread` (if
that attribute does not exist, fallback to `window.location.pathname`), then
fill comments into the thread. In other words, you should change `data-isso-id`
attribute of the element `section#isso-thread` (or modify the pathname with
`location.pushState`) before you can get new comments. And the thread element
itself should *NOT* be touched or removed.