CommentSubitemList

CommentSubitemList

Class representing the list of a comment's subitems. There can be two types of subitems currently: comment forms and "new replies" notes. They are managed with this class to handle the removal of their parent list properly.

Constructor

new CommentSubitemList()

Source:

Create a comment subitem list.

Members

content :object

Source:

List of subitems with names as keys.

Type:
  • object

Methods

add(name, $element)

Source:

Add a subitem to the list.

Parameters:
Name Type Description
name string
$element external:jQuery

get(name) → (nullable) {external:jQuery}

Source:

Get the subitem with the provided name.

Parameters:
Name Type Description
name string
Returns:
Type
external:jQuery

remove(name)

Source:

Remove a subitem both from the list and the page. Remove the list if has become empty.

Parameters:
Name Type Description
name string