| changeset 1002 | a86208b60c91 |
| parent 998 | 9521347ede1d |
| child 1010 | 5566738cb829 |
--- a/src/js/model.js Thu May 16 13:34:02 2013 +0200 +++ b/src/js/model.js Tue Jun 18 11:08:50 2013 +0200 @@ -1009,7 +1009,10 @@ return (_e.elementType === _listId); }); } else { - return this.contents[_listId] || new IriSP.List(this.directory); + if (typeof this.contents[_listId] === "undefined") { + this.contents[_listId] = new IriSP.List(this.directory); + } + return this.contents[_listId]; } };