Change const to a variable

This commit is contained in:
Simon Cossar 2015-06-19 15:31:03 -07:00
parent aa8b06aed2
commit 4896a7dec7
1 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ export default Discourse.View.extend(CleansUp, {
if (rtl) { // The site direction is rtl
position.right = $(window).width() - position.left + 10;
position.left = 'auto';
const overage = ($(window).width() - 50) - (position.right + width);
let overage = ($(window).width() - 50) - (position.right + width);
if (overage < 0) {
position.right += overage;
position.top += target.height() + 48;
@ -104,7 +104,7 @@ export default Discourse.View.extend(CleansUp, {
} else { // The site direction is ltr
position.left += target.width() + 10;
const overage = ($(window).width() - 50) - (position.left + width);
let overage = ($(window).width() - 50) - (position.left + width);
if (overage < 0) {
position.left += overage;
position.top += target.height() + 48;