src/js/serializers/JSONSerializer.js
branchpopcorn-port
changeset 566 098929cd2d62
parent 536 b7e545e35287
child 590 495ea8d73bed
equal deleted inserted replaced
565:903435828e6c 566:098929cd2d62
   259   var tweetsId = [];
   259   var tweetsId = [];
   260   
   260   
   261   /* first get the list containing the tweets */
   261   /* first get the list containing the tweets */
   262   var tweets = IriSP.underscore.filter(this._data.lists, function(entry) { return entry.id.indexOf("tweet") !== -1 });
   262   var tweets = IriSP.underscore.filter(this._data.lists, function(entry) { return entry.id.indexOf("tweet") !== -1 });
   263   
   263   
       
   264   if (tweets.length === 0)
       
   265     return [];
       
   266   
   264   // FIXME: collect tweets from multiple sources ?
   267   // FIXME: collect tweets from multiple sources ?
   265   tweetsId = IriSP.underscore.pluck(tweets[0].items, "id-ref");
   268   tweetsId = IriSP.underscore.pluck(tweets[0].items, "id-ref");
   266 
   269 
   267   return tweetsId;
   270   return tweetsId;
   268 };
   271 };