src/widgets/Highlighter.js
changeset 1079 d4f0681c4ff1
parent 1072 ac1eacb3aa33
equal deleted inserted replaced
1078:c28fb800e252 1079:d4f0681c4ff1
     7   return class extends ns.Widgets.Widget {
     7   return class extends ns.Widgets.Widget {
     8     constructor(player, config) {
     8     constructor(player, config) {
     9       super(player, config);
     9       super(player, config);
    10       var _this = this;
    10       var _this = this;
    11       this.throttledRefresh = _.throttle(function () {
    11       this.throttledRefresh = _.throttle(function () {
    12         console.log("highlighter Refresh");
       
    13         _this.update();
    12         _this.update();
    14       }, 800);
    13       }, 800);
    15     }
    14     }
    16 
    15 
    17     /**
    16     /**
    34             this.dataset.begin <= _currentTime &&
    33             this.dataset.begin <= _currentTime &&
    35             _currentTime < this.dataset.end
    34             _currentTime < this.dataset.end
    36           );
    35           );
    37         }
    36         }
    38       );
    37       );
    39       console.log(_this.$.find(".currentAnnotation"));
       
    40       return false;
    38       return false;
    41     }
    39     }
    42 
    40 
    43     draw() {
    41     draw() {
    44       var _this = this;
    42       var _this = this;