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
|
|
@ -27,6 +27,18 @@ Ox.LargeVideoTimeline = function(options, self) {
|
|||
width: 0
|
||||
})
|
||||
.options(options || {})
|
||||
.update({
|
||||
find: setSubtitles,
|
||||
'in': function() {
|
||||
setPointMarker('in');
|
||||
},
|
||||
out: function() {
|
||||
setPointMarker('out');
|
||||
},
|
||||
position: setPosition,
|
||||
subtitles: setSubtitles,
|
||||
width: setWidth
|
||||
})
|
||||
.addClass('OxLargeVideoTimeline')
|
||||
.mouseleave(mouseleave)
|
||||
.mousemove(mousemove)
|
||||
|
|
@ -216,20 +228,6 @@ Ox.LargeVideoTimeline = function(options, self) {
|
|||
}
|
||||
}
|
||||
|
||||
self.setOption = function(key, value) {
|
||||
if (key == 'find') {
|
||||
setSubtitles();
|
||||
} else if (key == 'in' || key == 'out') {
|
||||
setPointMarker(key);
|
||||
} else if (key == 'position') {
|
||||
setPosition();
|
||||
} else if (key == 'subtitles') {
|
||||
setSubtitles();
|
||||
} else if (key == 'width') {
|
||||
setWidth();
|
||||
}
|
||||
};
|
||||
|
||||
return that;
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue