MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / JQLite

Function JQLite

web/static/bower_components/angular/angular.js:2769–2792  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

2767
2768/////////////////////////////////////////////
2769function JQLite(element) {
2770 if (element instanceof JQLite) {
2771 return element;
2772 }
2773
2774 var argIsString;
2775
2776 if (isString(element)) {
2777 element = trim(element);
2778 argIsString = true;
2779 }
2780 if (!(this instanceof JQLite)) {
2781 if (argIsString && element.charAt(0) != '<') {
2782 throw jqLiteMinErr('nosel', 'Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element');
2783 }
2784 return new JQLite(element);
2785 }
2786
2787 if (argIsString) {
2788 jqLiteAddNodes(this, jqLiteParseHTML(element));
2789 } else {
2790 jqLiteAddNodes(this, element);
2791 }
2792}
2793
2794function jqLiteClone(element) {
2795 return element.cloneNode(true);

Callers 1

angular.jsFile · 0.85

Calls 4

isStringFunction · 0.85
trimFunction · 0.85
jqLiteAddNodesFunction · 0.85
jqLiteParseHTMLFunction · 0.85

Tested by

no test coverage detected