Changeset d741a96 in github


Ignore:
Timestamp:
Jan 9, 2012 9:30:56 AM (18 months ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
Children:
03fe1c2
Parents:
1adc705
Message:
  • Fix error when calling remove_row() on non-existing row
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/js/list.js

    rfc643e9 rd741a96  
    183183remove_row: function(uid, sel_next) 
    184184{ 
    185   if (this.rows[uid].obj) 
    186     this.rows[uid].obj.style.display = 'none'; 
     185  var obj = this.rows[uid] ? this.rows[uid].obj : null; 
     186 
     187  if (!obj) 
     188    return; 
     189 
     190  obj.style.display = 'none'; 
    187191 
    188192  if (sel_next) 
Note: See TracChangeset for help on using the changeset viewer.