aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2015-01-16 17:45:58 +0200
committerXhmikosR <[email protected]>2015-01-16 17:50:05 +0200
commit0481ce973f2c10753e23d2de21aafb78c582a0e5 (patch)
tree25e74b3c9eaaac230db448ef1aa8df5311c6ced9
parent0e79fe1a9f88a6e0ade7b6c38d8733d77ac3ceaf (diff)
downloadbootstrap-0481ce973f2c10753e23d2de21aafb78c582a0e5.tar.xz
bootstrap-0481ce973f2c10753e23d2de21aafb78c582a0e5.zip
Fix bogus JSCS warning.
-rw-r--r--js/tooltip.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/tooltip.js b/js/tooltip.js
index a1140d247..f9adb81ef 100644
--- a/js/tooltip.js
+++ b/js/tooltip.js
@@ -346,10 +346,10 @@
}
Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {
- return placement == 'bottom' ? { top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 } :
- placement == 'top' ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } :
+ return placement == 'bottom' ? { top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 } :
+ placement == 'top' ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } :
placement == 'left' ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } :
- /* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width }
+ /* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width }
}