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

Function JQLite

lib/test/angular/1.7.0/angular.js:3193–3218  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

3191
3192/////////////////////////////////////////////
3193function JQLite(element) {
3194 if (element instanceof JQLite) {
3195 return element;
3196 }
3197
3198 var argIsString;
3199
3200 if (isString(element)) {
3201 element = trim(element);
3202 argIsString = true;
3203 }
3204 if (!(this instanceof JQLite)) {
3205 if (argIsString && element.charAt(0) !== '<') {
3206 throw jqLiteMinErr('nosel', 'Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element');
3207 }
3208 return new JQLite(element);
3209 }
3210
3211 if (argIsString) {
3212 jqLiteAddNodes(this, jqLiteParseHTML(element));
3213 } else if (isFunction(element)) {
3214 jqLiteReady(element);
3215 } else {
3216 jqLiteAddNodes(this, element);
3217 }
3218}
3219
3220function jqLiteClone(element) {
3221 return element.cloneNode(true);

Callers

nothing calls this directly

Calls 6

isStringFunction · 0.70
trimFunction · 0.70
jqLiteAddNodesFunction · 0.70
jqLiteParseHTMLFunction · 0.70
isFunctionFunction · 0.70
jqLiteReadyFunction · 0.70

Tested by

no test coverage detected