]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix bogus JSCS warning. 15583/head
authorXhmikosR <xhmikosr@gmail.com>
Fri, 16 Jan 2015 15:45:58 +0000 (17:45 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Fri, 16 Jan 2015 15:50:05 +0000 (17:50 +0200)
js/tooltip.js

index a1140d24793821e775f22515b9e3a494f5a6be94..f9adb81ef748fb610fd54c5f84cf5782e4a7596c 100644 (file)
   }
 
   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 }
 
   }