MCPcopy
hub / github.com/kenberkeley/react-demo / getParent

Function getParent

static/bootstrap/js/bootstrap.js:768–779  ·  view source on GitHub ↗
($this)

Source from the content-addressed store, hash-verified

766 Dropdown.VERSION = '3.3.5'
767
768 function getParent($this) {
769 var selector = $this.attr('data-target')
770
771 if (!selector) {
772 selector = $this.attr('href')
773 selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
774 }
775
776 var $parent = selector && $(selector)
777
778 return $parent && $parent.length ? $parent : $this.parent()
779 }
780
781 function clearMenus(e) {
782 if (e && e.which === 3) return

Callers 2

clearMenusFunction · 0.85
bootstrap.jsFile · 0.85

Calls 1

$Function · 0.85

Tested by

no test coverage detected