($this)
| 743 | } |
| 744 | |
| 745 | function getParent($this) { |
| 746 | var selector = $this.attr('data-target') |
| 747 | , $parent |
| 748 | |
| 749 | if (!selector) { |
| 750 | selector = $this.attr('href') |
| 751 | selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 |
| 752 | } |
| 753 | |
| 754 | $parent = selector && $(selector) |
| 755 | |
| 756 | if (!$parent || !$parent.length) $parent = $this.parent() |
| 757 | |
| 758 | return $parent |
| 759 | } |
| 760 | |
| 761 | |
| 762 | /* DROPDOWN PLUGIN DEFINITION |
no test coverage detected