(element)
| 3215 | |
| 3216 | ///////////////////////////////////////////// |
| 3217 | function JQLite(element) { |
| 3218 | if (element instanceof JQLite) { |
| 3219 | return element; |
| 3220 | } |
| 3221 | |
| 3222 | var argIsString; |
| 3223 | |
| 3224 | if (isString(element)) { |
| 3225 | element = trim(element); |
| 3226 | argIsString = true; |
| 3227 | } |
| 3228 | if (!(this instanceof JQLite)) { |
| 3229 | if (argIsString && element.charAt(0) !== '<') { |
| 3230 | throw jqLiteMinErr('nosel', 'Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element'); |
| 3231 | } |
| 3232 | return new JQLite(element); |
| 3233 | } |
| 3234 | |
| 3235 | if (argIsString) { |
| 3236 | jqLiteAddNodes(this, jqLiteParseHTML(element)); |
| 3237 | } else if (isFunction(element)) { |
| 3238 | jqLiteReady(element); |
| 3239 | } else { |
| 3240 | jqLiteAddNodes(this, element); |
| 3241 | } |
| 3242 | } |
| 3243 | |
| 3244 | function jqLiteClone(element) { |
| 3245 | return element.cloneNode(true); |
nothing calls this directly
no test coverage detected