diff options
| author | Chris Rebert <[email protected]> | 2015-01-27 16:59:24 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2015-01-27 16:59:24 -0800 |
| commit | b258a1f5b08122f3efacbd1521cfb6286bc399b8 (patch) | |
| tree | c1e0e2a5682aa65fc5039c61c6130f30d219a9ff | |
| parent | 592950cc22575ac192c983bbaab25b6db54cf5c5 (diff) | |
| parent | ebedeaf2fed3aa7b02f5e5ba042116377b3ced1a (diff) | |
| download | bootstrap-b258a1f5b08122f3efacbd1521cfb6286bc399b8.tar.xz bootstrap-b258a1f5b08122f3efacbd1521cfb6286bc399b8.zip | |
Merge pull request #15681 from twbs/fix-replaceArrow
Fix name of Tooltip.replaceArrow() parameter
| -rw-r--r-- | js/tooltip.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/tooltip.js b/js/tooltip.js index 1856df598..f056fbc76 100644 --- a/js/tooltip.js +++ b/js/tooltip.js @@ -272,10 +272,10 @@ this.replaceArrow(arrowDelta, $tip[0][arrowOffsetPosition], isVertical) } - Tooltip.prototype.replaceArrow = function (delta, dimension, isHorizontal) { + Tooltip.prototype.replaceArrow = function (delta, dimension, isVertical) { this.arrow() - .css(isHorizontal ? 'left' : 'top', 50 * (1 - delta / dimension) + '%') - .css(isHorizontal ? 'top' : 'left', '') + .css(isVertical ? 'left' : 'top', 50 * (1 - delta / dimension) + '%') + .css(isVertical ? 'top' : 'left', '') } Tooltip.prototype.setContent = function () { |
