MCPcopy
hub / github.com/ajaxorg/ace / push

Method push

src/layer/lines.js:81–93  ·  view source on GitHub ↗
(cell)

Source from the content-addressed store, hash-verified

79 }
80
81 push(cell) {
82 if (Array.isArray(cell)) {
83 this.cells.push.apply(this.cells, cell);
84 var fragment = dom.createFragment(this.element);
85 for (var i=0; i<cell.length; i++) {
86 fragment.appendChild(cell[i].element);
87 }
88 this.element.appendChild(fragment);
89 } else {
90 this.cells.push(cell);
91 this.element.appendChild(cell.element);
92 }
93 }
94
95 unshift(cell) {
96 if (Array.isArray(cell)) {

Callers 15

serveDirectoryFunction · 0.80
getLocalIpsFunction · 0.80
buildTypesFunction · 0.80
commentFunction · 0.80
scriptFunction · 0.80
demoFunction · 0.80
buildAceModuleFunction · 0.80
writeFunction · 0.80
includeLoaderFunction · 0.80
xquery.jsFile · 0.80
coffee_worker.jsFile · 0.80

Calls 1

appendChildMethod · 0.80

Tested by

no test coverage detected