MCPcopy Index your code
hub / github.com/TruthHun/BookStack / pushDocumentCategory

Function pushDocumentCategory

static/js/editor.js:132–142  ·  view source on GitHub ↗

* 将一个节点推送到现有数组中 * @param $node

($node)

Source from the content-addressed store, hash-verified

130 * @param $node
131 */
132function pushDocumentCategory($node) {
133 for (var index in window.documentCategory){
134 var item = window.documentCategory[index];
135 if(item.id === $node.id){
136
137 window.documentCategory[index] = $node;
138 return;
139 }
140 }
141 window.documentCategory.push($node);
142}
143/**
144 * 将数据重置到Vue列表中
145 * @param $lists

Callers 3

markdown.jsFile · 0.85
loadDocumentFunction · 0.85
html-editor.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected