MCPcopy Create free account
hub / github.com/OpenReservation/OpenReservation / JQLite

Function JQLite

OpenReservation/wwwroot/Scripts/angular.js:2833–2857  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

2831
2832 /////////////////////////////////////////////
2833 function JQLite(element) {
2834 if (element instanceof JQLite) {
2835 return element;
2836 }
2837
2838 var argIsString;
2839
2840 if (isString(element)) {
2841 element = trim(element);
2842 argIsString = true;
2843 }
2844 if (!(this instanceof JQLite)) {
2845 if (argIsString && element.charAt(0) != '<') {
2846 throw jqLiteMinErr('nosel',
2847 '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
2859 function jqLiteClone(element) {
2860 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