forked from 0x2620/oxjs
self.setOption ~> that.update
This commit is contained in:
parent
9ee0742b53
commit
005d50c389
56 changed files with 919 additions and 933 deletions
|
|
@ -25,6 +25,19 @@ Ox.BlockVideoTimeline = function(options, self) {
|
|||
width: 0
|
||||
})
|
||||
.options(options || {})
|
||||
.update({
|
||||
'in': function() {
|
||||
self.options.showPointMarkers && setPoint('in');
|
||||
},
|
||||
out: function() {
|
||||
self.options.showPointMarkers && setPoint('out');
|
||||
},
|
||||
position: setPositionMarker,
|
||||
results: setResults,
|
||||
subtitles: setSubtitles,
|
||||
state: setState,
|
||||
width: setWidth
|
||||
})
|
||||
.addClass('OxBlockVideoTimeline')
|
||||
.css({
|
||||
position: 'absolute'
|
||||
|
|
@ -299,22 +312,6 @@ Ox.BlockVideoTimeline = function(options, self) {
|
|||
});
|
||||
}
|
||||
|
||||
self.setOption = function(key, value) {
|
||||
if (key == 'in' || key == 'out') {
|
||||
self.options.showPointMarkers && setPoint(key);
|
||||
} else if (key == 'position') {
|
||||
setPositionMarker();
|
||||
} else if (key == 'results') {
|
||||
setResults();
|
||||
} else if (key == 'subtitles') {
|
||||
setSubtitles();
|
||||
} else if (key == 'state') {
|
||||
setState();
|
||||
} else if (key == 'width') {
|
||||
setWidth();
|
||||
}
|
||||
};
|
||||
|
||||
return that;
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue