src/js/widgets/polemicWidget.js
branchpopcorn-port
changeset 398 d1883378b822
parent 395 5766e8238aaf
child 443 7612eced3867
equal deleted inserted replaced
397:eb54152c2cfa 398:d1883378b822
   357     return;
   357     return;
   358 
   358 
   359   var matches = this._serializer.searchTweetsOccurences(searchString);
   359   var matches = this._serializer.searchTweetsOccurences(searchString);
   360 
   360 
   361   if (IriSP.countProperties(matches) > 0) {
   361   if (IriSP.countProperties(matches) > 0) {
   362     this._Popcorn.trigger("IriSP.PolemicWidget.matchFound");
   362     this._Popcorn.trigger("IriSP.search.matchFound");
   363   } else {
   363   } else {
   364     this._Popcorn.trigger("IriSP.PolemicWidget.noMatchFound");
   364     this._Popcorn.trigger("IriSP.search.noMatchFound");
   365   }
   365   }
   366 
   366 
   367   for (var id in matches) {
   367   for (var id in matches) {
   368     var factor = 0.5 + matches[id] * 0.2;
   368     var factor = 0.5 + matches[id] * 0.2;
   369     if (this.svgElements.hasOwnProperty(id)) {
   369     if (this.svgElements.hasOwnProperty(id)) {