MCPcopy Create free account
hub / github.com/jipegit/OSXAuditor / getParent

Function getParent

bootstrap/js/bootstrap.js:750–764  ·  view source on GitHub ↗
($this)

Source from the content-addressed store, hash-verified

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

Callers 2

bootstrap.jsFile · 0.85
clearMenusFunction · 0.85

Calls 1

$Function · 0.50

Tested by

no test coverage detected