(element)
| 3302 | |
| 3303 | ///////////////////////////////////////////// |
| 3304 | function JQLite(element) { |
| 3305 | if (element instanceof JQLite) { |
| 3306 | return element; |
| 3307 | } |
| 3308 | |
| 3309 | var argIsString; |
| 3310 | |
| 3311 | if (isString(element)) { |
| 3312 | element = trim(element); |
| 3313 | argIsString = true; |
| 3314 | } |
| 3315 | if (!(this instanceof JQLite)) { |
| 3316 | if (argIsString && element.charAt(0) !== '<') { |
| 3317 | throw jqLiteMinErr('nosel', 'Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element'); |
| 3318 | } |
| 3319 | return new JQLite(element); |
| 3320 | } |
| 3321 | |
| 3322 | if (argIsString) { |
| 3323 | jqLiteAddNodes(this, jqLiteParseHTML(element)); |
| 3324 | } else if (isFunction(element)) { |
| 3325 | jqLiteReady(element); |
| 3326 | } else { |
| 3327 | jqLiteAddNodes(this, element); |
| 3328 | } |
| 3329 | } |
| 3330 | |
| 3331 | function jqLiteClone(element) { |
| 3332 | return element.cloneNode(true); |
nothing calls this directly
no test coverage detected