MCPcopy
hub / github.com/mongodb/node-mongodb-native / getParent

Function getParent

docs/2.2/lib/bootstrap.js:775–786  ·  view source on GitHub ↗
($this)

Source from the content-addressed store, hash-verified

773 }
774
775 function getParent($this) {
776 var selector = $this.attr('data-target')
777
778 if (!selector) {
779 selector = $this.attr('href')
780 selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
781 }
782
783 var $parent = selector && $(selector)
784
785 return $parent && $parent.length ? $parent : $this.parent()
786 }
787
788
789 // DROPDOWN PLUGIN DEFINITION

Callers 2

bootstrap.jsFile · 0.70
clearMenusFunction · 0.70

Calls 2

testMethod · 0.80
$Function · 0.50

Tested by

no test coverage detected