[Svn] r4125 - trunk/roundcubemail/program/js

trac at roundcube.net trac at roundcube.net
Sat Oct 23 09:55:55 CEST 2010


Author: alec
Date: 2010-10-23 02:55:55 -0500 (Sat, 23 Oct 2010)
New Revision: 4125

Modified:
   trunk/roundcubemail/program/js/app.js
Log:
- Fix possible js error in hide_message() (#1487076)


Modified: trunk/roundcubemail/program/js/app.js
===================================================================
--- trunk/roundcubemail/program/js/app.js	2010-10-22 19:25:00 UTC (rev 4124)
+++ trunk/roundcubemail/program/js/app.js	2010-10-23 07:55:55 UTC (rev 4125)
@@ -4622,14 +4622,14 @@
     }
     else {
       // 'loading' message
-      var k, n;
-      for (k in this.messages) {
-        for (n in this.messages[k].elements) {
-          if (this.messages[k].elements[n] == obj) {
-            this.messages[k].elements.splice(n, 1);
-            if (!this.messages[k].elements.length) {
-              this.messages[k].obj[fade?'fadeOut':'hide']();
-              delete this.messages[k];
+      var k, n, m = this.messages;
+      for (k in m) {
+        for (n in m[k].elements) {
+          if (m[k] && m[k].elements[n] == obj) {
+            m[k].elements.splice(n, 1);
+            if (!m[k].elements.length) {
+              m[k].obj[fade?'fadeOut':'hide']();
+              delete m[k];
             }
           }
         }

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list