MCPcopy
hub / github.com/angular-ui/ui-grid / JQLite

Function JQLite

lib/test/angular/1.8.0/angular.js:3304–3329  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

3302
3303/////////////////////////////////////////////
3304function JQLite(element) {
3305 if (element instanceof JQLite) {
3306 return element;
3307 }
3308
3309 var argIsString;
3310
3311 if (isString(element)) {
3312 element = trim(element);
3313 argIsString = true;
3314 }
3315 if (!(this instanceof JQLite)) {
3316 if (argIsString && element.charAt(0) !== '<') {
3317 throw jqLiteMinErr('nosel', 'Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element');
3318 }
3319 return new JQLite(element);
3320 }
3321
3322 if (argIsString) {
3323 jqLiteAddNodes(this, jqLiteParseHTML(element));
3324 } else if (isFunction(element)) {
3325 jqLiteReady(element);
3326 } else {
3327 jqLiteAddNodes(this, element);
3328 }
3329}
3330
3331function jqLiteClone(element) {
3332 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