equal
deleted
inserted
replaced
1178 if (_global) { |
1178 if (_global) { |
1179 return this.directory.getGlobalList().filter(function(_e) { |
1179 return this.directory.getGlobalList().filter(function(_e) { |
1180 return (_e.elementType === _listId); |
1180 return (_e.elementType === _listId); |
1181 }); |
1181 }); |
1182 } else { |
1182 } else { |
1183 return this.contents[_listId] || new IriSP.List(this.directory); |
1183 if (typeof this.contents[_listId] === "undefined") { |
|
1184 this.contents[_listId] = new IriSP.List(this.directory); |
|
1185 } |
|
1186 return this.contents[_listId]; |
1184 } |
1187 } |
1185 }; |
1188 }; |
1186 |
1189 |
1187 Source.prototype.forEach = function(_callback) { |
1190 Source.prototype.forEach = function(_callback) { |
1188 var _this = this; |
1191 var _this = this; |