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