(element)
| 3232 | |
| 3233 | ///////////////////////////////////////////// |
| 3234 | function JQLite(element) { |
| 3235 | if (element instanceof JQLite) { |
| 3236 | return element; |
| 3237 | } |
| 3238 | |
| 3239 | var argIsString; |
| 3240 | |
| 3241 | if (isString(element)) { |
| 3242 | element = trim(element); |
| 3243 | argIsString = true; |
| 3244 | } |
| 3245 | if (!(this instanceof JQLite)) { |
| 3246 | if (argIsString && element.charAt(0) !== '<') { |
| 3247 | throw jqLiteMinErr('nosel', 'Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element'); |
| 3248 | } |
| 3249 | return new JQLite(element); |
| 3250 | } |
| 3251 | |
| 3252 | if (argIsString) { |
| 3253 | jqLiteAddNodes(this, jqLiteParseHTML(element)); |
| 3254 | } else if (isFunction(element)) { |
| 3255 | jqLiteReady(element); |
| 3256 | } else { |
| 3257 | jqLiteAddNodes(this, element); |
| 3258 | } |
| 3259 | } |
| 3260 | |
| 3261 | function jqLiteClone(element) { |
| 3262 | return element.cloneNode(true); |
nothing calls this directly
no test coverage detected