rem: else 
add: else 
context: function GetActualSize(){  if (intervalSum > intervalLimit)  {    dump(" Timeout trying to load preview image\n");    CancelTimer();    return;  }  if (!previewImage)  {    CancelTimer();  }  else  {    if (previewImage.complete)    {      // Image loading has completed -- we can get actual width      CancelTimer();      actualWidth  = previewImage.naturalWidth;      actualHeight = previewImage.naturalHeight;      if (actualWidth && actualHeight)      {        // Use actual size or scale to fit preview if either dimension is too large        var width = actualWidth;        var height = actualHeight;        if (actualWidth > previewImageWidth)        {            width = previewImageWidth;            height = actualHeight * (previewImageWidth / actualWidth);        }        if (height > previewImageHeight)        {          height = previewImageHeight;          width = actualWidth * (previewImageHeight / actualHeight);        }        if (actualWidth > previewImageWidth || actualHeight > previewImageHeight)        {          // Resize image to fit preview frame          previewImage.setAttribute("width", width);          previewImage.setAttribute("height", height);        }        dialog.PreviewWidth.setAttribute("value", actualWidth);        dialog.PreviewHeight.setAttribute("value", actualHeight);        dialog.PreviewSize.setAttribute("collapsed", "false");        dialog.ImageHolder.setAttribute("collapsed", "false");        // Use values as start for constrain proportions      }      if (dialog.actualSizeRadio.checked)        SetActualSize();    }    else     {      //dump("*** Waiting for image loading...\n");      // Accumulate time so we don't do try this forever      intervalSum += interval;    }  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0b2dd2b2d2fd037df917e07645fa019a963332a5/EdImageProps.js/buggy/editor/ui/dialogs/content/EdImageProps.js