(element)
| 2832 | |
| 2833 | ///////////////////////////////////////////// |
| 2834 | function 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 | |
| 2859 | function jqLiteClone(element) { |
| 2860 | return element.cloneNode(true); |
no test coverage detected