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

Function JQLite

lib/test/angular/1.6.7/angular.js:3217–3242  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

3215
3216/////////////////////////////////////////////
3217function JQLite(element) {
3218 if (element instanceof JQLite) {
3219 return element;
3220 }
3221
3222 var argIsString;
3223
3224 if (isString(element)) {
3225 element = trim(element);
3226 argIsString = true;
3227 }
3228 if (!(this instanceof JQLite)) {
3229 if (argIsString && element.charAt(0) !== '<') {
3230 throw jqLiteMinErr('nosel', 'Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element');
3231 }
3232 return new JQLite(element);
3233 }
3234
3235 if (argIsString) {
3236 jqLiteAddNodes(this, jqLiteParseHTML(element));
3237 } else if (isFunction(element)) {
3238 jqLiteReady(element);
3239 } else {
3240 jqLiteAddNodes(this, element);
3241 }
3242}
3243
3244function jqLiteClone(element) {
3245 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