fix typo introduced in previous changeset
authorGavin Sharp <gavin@mozilla.com>
Thu, 27 Nov 2008 22:00:24 -0500
changeset 5 39b206d6d338
parent 4 4b03928f2aed
child 6 ab5e3aa6f021
push id6
push usergsharp@mozilla.com
push dateFri, 28 Nov 2008 02:59:54 +0000
fix typo introduced in previous changeset
content/overlay.js
--- a/content/overlay.js
+++ b/content/overlay.js
@@ -91,17 +91,17 @@ var tabcloser = {
     
     // prompt?
     var message = this.strings.getFormattedString("areYouSure.message",
                                                 [tabsToClose.length, host]);
     var title = this.strings.getString("areYouSure");
     var promptService = Cc["@mozilla.org/embedcomp/prompt-service;1"].
                         getService(Ci.nsIPromptService);
     if (promptService.confirm(null, title, message)) {
-      tabsToClose.forEach(function (el) {
+      tabsToClose.forEach(function (t) {
         // work around some strange bug in 3.0.x that causes removeTab to fail
         // silently when closing the last tab this way. This isn't needed on
         // trunk...
         if (gBrowser.mTabs.length == 1)
           closeWindow(true);
         else
           gBrowser.removeTab(t);
       });