| 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 $
*/
*/
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();