MCPcopy Index your code
hub / github.com/Blogify/Blogify / getParent

Function getParent

public/assets/assets/scripts/frontend.js:10054–10065  ·  view source on GitHub ↗
($this)

Source from the content-addressed store, hash-verified

10052 }
10053
10054 function getParent($this) {
10055 var selector = $this.attr('data-target')
10056
10057 if (!selector) {
10058 selector = $this.attr('href')
10059 selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
10060 }
10061
10062 var $parent = selector && $(selector)
10063
10064 return $parent && $parent.length ? $parent : $this.parent()
10065 }
10066
10067
10068 // DROPDOWN PLUGIN DEFINITION

Callers 2

frontend.jsFile · 0.70
clearMenusFunction · 0.70

Calls 1

$Function · 0.85

Tested by

no test coverage detected