diff options
| author | fat <[email protected]> | 2013-07-25 21:49:19 -0700 |
|---|---|---|
| committer | fat <[email protected]> | 2013-07-25 21:49:19 -0700 |
| commit | 124d7e6279e34cfd6480a9f33f934aaba93b9dde (patch) | |
| tree | 21c85873e84b1837b933af11c7fccf0a9f44512a /dist/js/bootstrap.js | |
| parent | 0190128ebc40c362dc618e2d4fcf52fa47b21a1d (diff) | |
| download | bootstrap-124d7e6279e34cfd6480a9f33f934aaba93b9dde.tar.xz bootstrap-124d7e6279e34cfd6480a9f33f934aaba93b9dde.zip | |
fixes #8560
Diffstat (limited to 'dist/js/bootstrap.js')
| -rw-r--r-- | dist/js/bootstrap.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js index 2ab64af7b..c93f87b09 100644 --- a/dist/js/bootstrap.js +++ b/dist/js/bootstrap.js @@ -1,3 +1,5 @@ +if (!jQuery) throw new Error("Bootstrap requires jQuery") + /* ======================================================================== * Bootstrap: transition.js v3.0.0 * http://twbs.github.com/bootstrap/javascript.html#transitions @@ -1573,7 +1575,7 @@ return ($href && $href.length - && [[ $href.position().top + (!$.isWindow(self.$scrollElement.get(0)) && self.$scrollElement.scrollTop()), href ]]) || null + && [[ $href.offset().top + (!$.isWindow(self.$scrollElement.get(0)) && self.$scrollElement.scrollTop()), href ]]) || null }) .sort(function (a, b) { return a[0] - b[0] }) .each(function () { |
