MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / init

Function init

packages/ui-default/components/discussion/CommentBox.js:25–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25function init() {
26 if (initialized) return;
27 $(document).on('submit', '[name="dczcomments__box__form"]', onBoxSubmit);
28 $(document).on('vjCommentBoxCancel', '[name="dczcomments__box__form"]', onBoxCancel);
29 $(document).on('click', '[name="dczcomments__box__cancel"]', onBoxCancel);
30 initialized = true;
31}
32
33export default class CommentBox extends DOMAttachedObject {
34 static DOMAttachKey = 'vjCommentBoxInstance';

Callers 1

constructorMethod · 0.70

Calls 1

onMethod · 0.45

Tested by

no test coverage detected