($this)
| 846 | } |
| 847 | |
| 848 | function getParent($this) { |
| 849 | var selector = $this.attr('data-target') |
| 850 | |
| 851 | if (!selector) { |
| 852 | selector = $this.attr('href') |
| 853 | selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 |
| 854 | } |
| 855 | |
| 856 | var $parent = selector && $(selector) |
| 857 | |
| 858 | return $parent && $parent.length ? $parent : $this.parent() |
| 859 | } |
| 860 | |
| 861 | |
| 862 | // DROPDOWN PLUGIN DEFINITION |
no outgoing calls
no test coverage detected