From be431441cb06de48b01fde2baf3ccf04094c0273 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 12 Jan 2012 02:29:48 -0500
Subject: [PATCH] - Applied fixes from trunk up to r5756

---
 program/js/list.js |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/program/js/list.js b/program/js/list.js
index 0d124ac..f6380ad 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -182,8 +182,12 @@
  */
 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();

--
Gitblit v1.9.1