Bug 1260768 - showError() function is broken;r+a=philipp
authorStefan Sitter <ssitter@gmail.com>
Thu, 26 May 2016 20:39:15 +0200
changeset 24893 06c3aadde9bf312e681fd0e12bb253075b204b5a
parent 24892 ee8bca50ea41c3ca07cefea3b7d39ece0700fd22
child 24894 a90c9c5b546db9d8a38c97c9100ccc0023b872b7
push id1657
push userclokep@gmail.com
push dateMon, 06 Jun 2016 19:50:21 +0000
treeherdercomm-beta@9fac989284b5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1260768
Bug 1260768 - showError() function is broken;r+a=philipp
calendar/base/src/calUtils.js
--- a/calendar/base/src/calUtils.js
+++ b/calendar/base/src/calUtils.js
@@ -1000,19 +1000,19 @@ function ASSERT(aCondition, aMessage, aC
 
 /**
  * Uses the prompt service to display an error message.
  * This function cannot be migrated into a module file, because it relies on an outer window object.
  *
  * @param aMsg The message to be shown
  */
 function showError(aMsg) {
-    let window = window || null;
-    if (window) {
-        Services.prompt.alert(window, calGetString("calendar", "genericErrorTitle"), aMsg);
+    let wnd = window || null;
+    if (wnd) {
+        Services.prompt.alert(wnd, calGetString("calendar", "genericErrorTitle"), aMsg);
     }
 }
 
 /**
  * Pick whichever of "black" or "white" will look better when used as a text
  * color against a background of bgColor.
  *
  * @param bgColor   the background color as a "#RRGGBB" string