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

Function JQLite

test/angular/1.4/angular.js:2834–2857  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

2832
2833/////////////////////////////////////////////
2834function JQLite(element) {
2835 if (element instanceof JQLite) {
2836 return element;
2837 }
2838
2839 var argIsString;
2840
2841 if (isString(element)) {
2842 element = trim(element);
2843 argIsString = true;
2844 }
2845 if (!(this instanceof JQLite)) {
2846 if (argIsString && element.charAt(0) != '<') {
2847 throw jqLiteMinErr('nosel', 'Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element');
2848 }
2849 return new JQLite(element);
2850 }
2851
2852 if (argIsString) {
2853 jqLiteAddNodes(this, jqLiteParseHTML(element));
2854 } else {
2855 jqLiteAddNodes(this, element);
2856 }
2857}
2858
2859function jqLiteClone(element) {
2860 return element.cloneNode(true);

Callers 1

angular.jsFile · 0.70

Calls 4

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

Tested by

no test coverage detected