summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-01-12 07:29:48 +0000
committeralecpl <alec@alec.pl>2012-01-12 07:29:48 +0000
commitbe431441cb06de48b01fde2baf3ccf04094c0273 (patch)
tree4e2aa31fc1498bd7967d69e328a9168ee8315459 /program
parent89730fa4e26a1efb6328af34cf89827642920272 (diff)
- Applied fixes from trunk up to r5756
Diffstat (limited to 'program')
-rw-r--r--program/js/list.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/program/js/list.js b/program/js/list.js
index 0d124ac7c..f6380ad2c 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -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();