src/js/model.js
changeset 964 d7d56ea2d0a6
parent 959 ee11ed1b739e
child 965 eadb7290c325
equal deleted inserted replaced
963:d58d0dcdb640 964:d7d56ea2d0a6
   518 IriSP.Model.Annotation = function(_id, _source) {
   518 IriSP.Model.Annotation = function(_id, _source) {
   519     IriSP.Model.Element.call(this, _id, _source);
   519     IriSP.Model.Element.call(this, _id, _source);
   520     this.elementType = 'annotation';
   520     this.elementType = 'annotation';
   521     this.begin = new IriSP.Model.Time();
   521     this.begin = new IriSP.Model.Time();
   522     this.end = new IriSP.Model.Time();
   522     this.end = new IriSP.Model.Time();
       
   523     var _this = this;
       
   524     this.on("click", function() {
       
   525         _this.getMedia().setCurrentTime(_this.begin);
       
   526     })
   523 }
   527 }
   524 
   528 
   525 IriSP.Model.Annotation.prototype = new IriSP.Model.Element(null);
   529 IriSP.Model.Annotation.prototype = new IriSP.Model.Element(null);
   526 
   530 
   527 IriSP.Model.Annotation.prototype.setBegin = function(_beginMs) {
   531 IriSP.Model.Annotation.prototype.setBegin = function(_beginMs) {