(selector, context)
| 82 | // returns jQuery object. Only use where |
| 83 | // getElementById is not available. |
| 84 | var S = function (selector, context) { |
| 85 | if (typeof selector === 'string') { |
| 86 | if (context) { |
| 87 | var cont; |
| 88 | if (context.jquery) { |
| 89 | cont = context[0]; |
| 90 | if (!cont) return context; |
| 91 | } else { |
| 92 | cont = context; |
| 93 | } |
| 94 | return $(cont.querySelectorAll(selector)); |
| 95 | } |
| 96 | |
| 97 | return $(document.querySelectorAll(selector)); |
| 98 | } |
| 99 | |
| 100 | return $(selector, context); |
| 101 | }; |
| 102 | |
| 103 | // Namespace functions. |
| 104 |
no outgoing calls
no test coverage detected