diff options
| author | Chris Rebert <[email protected]> | 2015-01-27 11:15:55 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2015-01-27 11:15:55 -0800 |
| commit | ebedeaf2fed3aa7b02f5e5ba042116377b3ced1a (patch) | |
| tree | c1e0e2a5682aa65fc5039c61c6130f30d219a9ff /js/tooltip.js | |
| parent | 592950cc22575ac192c983bbaab25b6db54cf5c5 (diff) | |
| download | bootstrap-ebedeaf2fed3aa7b02f5e5ba042116377b3ced1a.tar.xz bootstrap-ebedeaf2fed3aa7b02f5e5ba042116377b3ced1a.zip | |
Fix name of Tooltip.replaceArrow() parameter
isHorizontal => isVertical
Diffstat (limited to 'js/tooltip.js')
| -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 () { |
