src/js/widgets/annotationsListWidget.js
branchpopcorn-port
changeset 784 2ce658b19b96
parent 753 72eecd7250e5
child 820 7968346b9689
equal deleted inserted replaced
783:591b117c19ca 784:2ce658b19b96
   133   /* FIXME: DRY the whole thing */
   133   /* FIXME: DRY the whole thing */
   134   var annotations = serializer._data.annotations;
   134   var annotations = serializer._data.annotations;
   135   if (IriSP.null_or_undefined(annotations))
   135   if (IriSP.null_or_undefined(annotations))
   136     return;
   136     return;
   137   
   137   
       
   138   /*
       
   139   commented in case we wanted to discriminate against some annotation types.
   138   var view_types = serializer.getIds("Contributions");
   140   var view_types = serializer.getIds("Contributions");
       
   141   */
   139   var l = [];
   142   var l = [];
   140   
   143   
   141   var media = this._serializer.currentMedia()["id"];
   144   var media = this._serializer.currentMedia()["id"];
   142   
   145   
   143   for (i = 0; i < annotations.length; i++) {
   146   for (i = 0; i < annotations.length; i++) {