($this)
| 10052 | } |
| 10053 | |
| 10054 | function getParent($this) { |
| 10055 | var selector = $this.attr('data-target') |
| 10056 | |
| 10057 | if (!selector) { |
| 10058 | selector = $this.attr('href') |
| 10059 | selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 |
| 10060 | } |
| 10061 | |
| 10062 | var $parent = selector && $(selector) |
| 10063 | |
| 10064 | return $parent && $parent.length ? $parent : $this.parent() |
| 10065 | } |
| 10066 | |
| 10067 | |
| 10068 | // DROPDOWN PLUGIN DEFINITION |
no test coverage detected