add missing lets to silence strict mode r=mfinkle
authorTaras Glek <tglek@mozilla.com>
Fri, 27 Mar 2009 10:29:21 -0700
changeset 65143 a5635142cef593cd8f5c79b1dcdd8d2e88c193d9
parent 65142 9b2ecbf64a9ab0852f6398fcedd0c18c5ac10408
child 65144 6e11debce080394a12ea074928566a626469c57a
push idunknown
push userunknown
push dateunknown
reviewersmfinkle
add missing lets to silence strict mode r=mfinkle
mobile/chrome/content/WidgetStack.js
--- a/mobile/chrome/content/WidgetStack.js
+++ b/mobile/chrome/content/WidgetStack.js
@@ -1320,18 +1320,18 @@ WidgetStack.prototype = {
   // be used to bring rect up to the edge of bounds if we'd go over.
   _rectTranslateConstrain: function (dx, dy, rect, bounds) {
     let newX, newY;
 
     // If the rect is larger than the bounds, allow it to increase its overlap
     let woverflow = rect.width > bounds.width;
     let hoverflow = rect.height > bounds.height;
     if (woverflow || hoverflow) {
-      intersection = rect.intersect(bounds);
-      newIntersection = rect.clone().translate(dx, dy).intersect(bounds);
+      let intersection = rect.intersect(bounds);
+      let newIntersection = rect.clone().translate(dx, dy).intersect(bounds);
       if (woverflow)
         newX = (newIntersection.width > intersection.width) ? rect.x + dx : rect.x;
       if (hoverflow)
         newY = (newIntersection.height > intersection.height) ? rect.y + dy : rect.y;
     }
 
     // Common case, rect fits within the bounds
     // clamp new X to within [bounds.left, bounds.right - rect.width],