diff options
author | alecpl <alec@alec.pl> | 2010-10-23 07:55:55 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-10-23 07:55:55 +0000 |
commit | ee72e4d4ee80d8f529996ba93a4df1f02b210e33 (patch) | |
tree | 60a11bdd2a353338574cf5390c7fae1c4db70f86 /program/js/app.js | |
parent | a1fe6bd11d7afb8ddd42d1fe465a6d2d93b51592 (diff) |
- Fix possible js error in hide_message() (#1487076)
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/program/js/app.js b/program/js/app.js index 4587ce898..3e2bf3bda 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -4622,14 +4622,14 @@ function rcube_webmail() } 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]; } } } |