($this)
| 773 | } |
| 774 | |
| 775 | function getParent($this) { |
| 776 | var selector = $this.attr('data-target') |
| 777 | |
| 778 | if (!selector) { |
| 779 | selector = $this.attr('href') |
| 780 | selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 |
| 781 | } |
| 782 | |
| 783 | var $parent = selector && $(selector) |
| 784 | |
| 785 | return $parent && $parent.length ? $parent : $this.parent() |
| 786 | } |
| 787 | |
| 788 | |
| 789 | // DROPDOWN PLUGIN DEFINITION |
no test coverage detected