src/js/widgets/annotationsListWidget.js
changeset 855 1be5beb4b196
parent 852 eefb64f74a3f
equal deleted inserted replaced
852:eefb64f74a3f 855:1be5beb4b196
   253         this._Popcorn.listen("timeupdate", _throttled);
   253         this._Popcorn.listen("timeupdate", _throttled);
   254         if (this.cinecast_version) {
   254         if (this.cinecast_version) {
   255             window.setInterval(function() {
   255             window.setInterval(function() {
   256                 var _tmpSerializer = new IriSP.JSONSerializer(IriSP.__dataloader,  _this._config.metadata.src, true);
   256                 var _tmpSerializer = new IriSP.JSONSerializer(IriSP.__dataloader,  _this._config.metadata.src, true);
   257                 _tmpSerializer.sync(function(json) {
   257                 _tmpSerializer.sync(function(json) {
       
   258                     _this.annotations_ids = IriSP.underscore(_this._serializer._data.annotations).map(function(_a) {
       
   259                       return _a.id.toLowerCase();
       
   260                     });
   258                     IriSP.underscore(json.annotations).each(function(_a) {
   261                     IriSP.underscore(json.annotations).each(function(_a) {
   259                         var _j = _this.annotations_ids.indexOf(_a.id);
   262                         var _j = _this.annotations_ids.indexOf(_a.id);
   260                         if (_j == -1) {
   263                         if (_j == -1) {
   261                             _this._serializer._data.annotations.push(_a);
   264                             _this._serializer._data.annotations.push(_a);
   262                             _this.annotations_ids.push(_a.id);
   265                             _this.annotations_ids.push(_a.id);