MCPcopy Index your code
hub / github.com/angular-ui/ui-router / JQLite

Function JQLite

test/angular/1.2/angular.js:2368–2389  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

2366
2367/////////////////////////////////////////////
2368function JQLite(element) {
2369 if (element instanceof JQLite) {
2370 return element;
2371 }
2372 if (isString(element)) {
2373 element = trim(element);
2374 }
2375 if (!(this instanceof JQLite)) {
2376 if (isString(element) && element.charAt(0) != '<') {
2377 throw jqLiteMinErr('nosel', 'Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element');
2378 }
2379 return new JQLite(element);
2380 }
2381
2382 if (isString(element)) {
2383 jqLiteAddNodes(this, jqLiteParseHTML(element));
2384 var fragment = jqLite(document.createDocumentFragment());
2385 fragment.append(this);
2386 } else {
2387 jqLiteAddNodes(this, element);
2388 }
2389}
2390
2391function jqLiteClone(element) {
2392 return element.cloneNode(true);

Callers 1

angular.jsFile · 0.70

Calls 4

isStringFunction · 0.70
jqLiteAddNodesFunction · 0.70
jqLiteParseHTMLFunction · 0.70
trimFunction · 0.50

Tested by

no test coverage detected