equal
deleted
inserted
replaced
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) { |