diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-01-07 13:22:13 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-01-07 13:22:13 +0100 |
commit | f67037ce5779929678c9facc5dc925c0e054998d (patch) | |
tree | 57c789679fca9217d737297f31d9428a97cbacda /program/js/list.js | |
parent | e59471fcb9f4e5e11a6d054e930a21b469f76f97 (diff) |
Fix error when calling get_selection() after any (selected) row was removed
Diffstat (limited to 'program/js/list.js')
-rw-r--r-- | program/js/list.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/list.js b/program/js/list.js index 2ea4d2190..dafc9eb66 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -1065,7 +1065,7 @@ get_selection: function(deep) if (deep !== false && res.length) { for (var uid, uids, i=0, len=res.length; i<len; i++) { uid = res[i]; - if (this.rows[uid].has_children && !this.rows[uid].expanded) { + if (this.rows[uid] && this.rows[uid].has_children && !this.rows[uid].expanded) { uids = this.row_children(uid); for (var j=0, uids_len=uids.length; j<uids_len; j++) { uid = uids[j]; |