(element)
| 3191 | |
| 3192 | ///////////////////////////////////////////// |
| 3193 | function 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 | |
| 3220 | function jqLiteClone(element) { |
| 3221 | return element.cloneNode(true); |
nothing calls this directly
no test coverage detected