integration/js/metadataplayer-core.js
changeset 88 c91124908cd1
parent 10 34df8e58b6fc
child 131 6ca3d309d1da
equal deleted inserted replaced
87:4b37ee07374d 88:c91124908cd1
  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;