From e29c75041e2e7bf93273528b217e410045fa563d Mon Sep 17 00:00:00 2001 From: samme Date: Sat, 9 Aug 2014 10:17:26 -0700 Subject: [PATCH] Make affix accept `0` as offsetTop or offsetBottom Fixes #12815. Closes #14363. --- js/affix.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/affix.js b/js/affix.js index bd48fc2ca3..b8519ecb34 100644 --- a/js/affix.js +++ b/js/affix.js @@ -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) })