]> git.donarmstrong.com Git - roundcube.git/blobdiff - program/js/list.js.src
Imported Upstream version 0.7.2
[roundcube.git] / program / js / list.js.src
index c8864c31897f815afcfdff63d065eb23059683ee..e15d03d22346be4a0378fd5d7c207b26d6d55f33 100644 (file)
@@ -13,7 +13,7 @@
  | Requires: common.js                                                   |
  +-----------------------------------------------------------------------+
 
-  $Id: list.js 5271 2011-09-22 20:51:42Z thomasb $
+  $Id: list.js 5757 2012-01-12 07:29:48Z alec $
 */
 
 
@@ -182,8 +182,12 @@ clear: function(sel)
  */
 remove_row: function(uid, sel_next)
 {
-  if (this.rows[uid].obj)
-    this.rows[uid].obj.style.display = 'none';
+  var obj = this.rows[uid] ? this.rows[uid].obj : null;
+
+  if (!obj)
+    return;
+
+  obj.style.display = 'none';
 
   if (sel_next)
     this.select_next();