player/js/metadataplayer-core.js
changeset 19 a07c2128b7c1
parent 18 b8a45e2fd6fd
child 32 06d7faebcb8d
equal deleted inserted replaced
17:150ccacec493 19:a07c2128b7c1
  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;