Skip to content

Commit

Permalink
Make affix accept 0 as offsetTop or offsetBottom
Browse files Browse the repository at this point in the history
Fixes #12815.
Closes #14363.
  • Loading branch information
samme authored and hnrch02 committed Sep 8, 2014
1 parent 9b9e2f5 commit e29c750
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/affix.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@

data.offset = data.offset || {}

if (data.offsetBottom) data.offset.bottom = data.offsetBottom
if (data.offsetTop) data.offset.top = data.offsetTop
if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom
if (data.offsetTop != null) data.offset.top = data.offsetTop

Plugin.call($spy, data)
})
Expand Down

0 comments on commit e29c750

Please sign in to comment.