MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / jqLiteAddNodes

Function jqLiteAddNodes

lib/test/angular/1.7.0/angular.js:3395–3418  ·  view source on GitHub ↗
(root, elements)

Source from the content-addressed store, hash-verified

3393
3394
3395function jqLiteAddNodes(root, elements) {
3396 // THIS CODE IS VERY HOT. Don't make changes without benchmarking.
3397
3398 if (elements) {
3399
3400 // if a Node (the most common case)
3401 if (elements.nodeType) {
3402 root[root.length++] = elements;
3403 } else {
3404 var length = elements.length;
3405
3406 // if an Array or NodeList and not a Window
3407 if (typeof length === 'number' && elements.window !== elements) {
3408 if (length) {
3409 for (var i = 0; i < length; i++) {
3410 root[root.length++] = elements[i];
3411 }
3412 }
3413 } else {
3414 root[root.length++] = elements;
3415 }
3416 }
3417 }
3418}
3419
3420
3421function jqLiteController(element, name) {

Callers 2

JQLiteFunction · 0.70
angular.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected