($this)
| 718 | } |
| 719 | |
| 720 | function getParent($this) { |
| 721 | var selector = $this.attr('data-target') |
| 722 | , $parent |
| 723 | |
| 724 | if (!selector) { |
| 725 | selector = $this.attr('href') |
| 726 | selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 |
| 727 | } |
| 728 | |
| 729 | $parent = $(selector) |
| 730 | $parent.length || ($parent = $this.parent()) |
| 731 | |
| 732 | return $parent |
| 733 | } |
| 734 | |
| 735 | |
| 736 | /* DROPDOWN PLUGIN DEFINITION |
no outgoing calls
no test coverage detected