(selector, context)
| 19 | ]; |
| 20 | |
| 21 | function $(selector, context) { |
| 22 | var elements = null; |
| 23 | |
| 24 | // if no context is defined, look for the elements on the current page |
| 25 | if (context === undefined) { |
| 26 | context = doc.currentPage(); |
| 27 | } |
| 28 | |
| 29 | if (classNames.indexOf(selector) != -1) { |
| 30 | elements = $.fn.getElementsByClass(selector, context); |
| 31 | } else { |
| 32 | elements = $.fn.getElementsByName(selector, context); |
| 33 | } |
| 34 | |
| 35 | return elements; |
| 36 | } |
| 37 | |
| 38 | $.fn = { |
| 39 |
nothing calls this directly
no outgoing calls
no test coverage detected