js/lcn/classes.js: add LCNThread.getReplies
This commit is contained in:
parent
45727f6a51
commit
4bb7c3ef0f
|
@ -179,6 +179,7 @@ globalThis.LCNThread = class LCNThread {
|
||||||
"getThread" () { return this.#thread; }
|
"getThread" () { return this.#thread; }
|
||||||
"getOP" () { return this.#op; }
|
"getOP" () { return this.#op; }
|
||||||
"getPosts" () { return Array.prototype.map.apply(this.#thread.querySelectorAll(".post"), [ el => LCNPost.assign(el) ]); }
|
"getPosts" () { return Array.prototype.map.apply(this.#thread.querySelectorAll(".post"), [ el => LCNPost.assign(el) ]); }
|
||||||
|
"getReplies" () { return Array.prototype.map.apply(this.#thread.querySelectorAll(".post:not(.op)"), [ el => LCNPost.assign(el) ]); }
|
||||||
|
|
||||||
"getParent" () { return this.#parent; }
|
"getParent" () { return this.#parent; }
|
||||||
"__setParent" (inst) { return this.#parent = inst; }
|
"__setParent" (inst) { return this.#parent = inst; }
|
||||||
|
|
Loading…
Reference in New Issue