($this)
| 423 | } |
| 424 | |
| 425 | function getParent($this) { |
| 426 | var selector = $this.attr('data-target') |
| 427 | , $parent |
| 428 | |
| 429 | if (!selector) { |
| 430 | selector = $this.attr('href') |
| 431 | selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 |
| 432 | } |
| 433 | |
| 434 | $parent = selector && $(selector) |
| 435 | |
| 436 | if (!$parent || !$parent.length) $parent = $this.parent() |
| 437 | |
| 438 | return $parent |
| 439 | } |
| 440 | |
| 441 | |
| 442 | /* DROPDOWN PLUGIN DEFINITION |
no test coverage detected