MCPcopy Create free account
hub / github.com/ryanmcgrath/twython / getParent

Function getParent

docs/_themes/basicstrap/static/js/bootstrap.js:720–733  ·  view source on GitHub ↗
($this)

Source from the content-addressed store, hash-verified

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

Callers 2

bootstrap.jsFile · 0.70
clearMenusFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected