Skip to content

Commit

Permalink
3.0.1
Browse files Browse the repository at this point in the history
exclude self when traversing parents
  • Loading branch information
Ryan Brewster committed Mar 18, 2015
1 parent 86446f1 commit 97a4bd5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ args: A comma delimited list of arguments to pass to the jquery function
```
---
> _example_

```html
<!-- bike_foo.jpg -->
<div id="foo"></div>
Expand Down
2 changes: 1 addition & 1 deletion lib/bumper-core.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/bumper-dom-jquery.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/bumper-core.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
) @, ->

class BumperCore
version: '3.0.0'
version: '3.0.1'

window.Bumper ||= {}
window.Bumper.Core ||= new BumperCore
2 changes: 1 addition & 1 deletion src/bumper-dom-jquery.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
splitArray = match.replace(/[{}]/g, '').split ':'

# find match within element's parent chain
$element = $rootEl.closest("#{splitArray[0]}")
$element = $rootEl.parent().closest("#{splitArray[0]}")

# find first matching elemnt anywhere in the dom
if restrictToParents == false && !$element.length
Expand Down

0 comments on commit 97a4bd5

Please sign in to comment.