MCPcopy Index your code
hub / github.com/idank/explainshell / getParent

Function getParent

explainshell/web/static/js/bootstrap.js:745–759  ·  view source on GitHub ↗
($this)

Source from the content-addressed store, hash-verified

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

Callers 2

bootstrap.jsFile · 0.85
clearMenusFunction · 0.85

Calls 1

$Function · 0.70

Tested by

no test coverage detected