MCPcopy
hub / github.com/puma/puma-dev / getParent

Function getParent

docs/js/bootstrap.js:848–859  ·  view source on GitHub ↗
($this)

Source from the content-addressed store, hash-verified

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

Callers 2

bootstrap.jsFile · 0.85
clearMenusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected