rename tooltip to videoTooltip
This commit is contained in:
parent
c567a80a44
commit
4627b2e344
1 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ Ox.VideoPreview = function(options, self) {
|
|||
position: void 0,
|
||||
scaleToFill: false,
|
||||
timeline: '',
|
||||
tooltip: null,
|
||||
videoTooltip: null,
|
||||
width: 256
|
||||
})
|
||||
.options(options || {})
|
||||
|
@ -70,8 +70,8 @@ Ox.VideoPreview = function(options, self) {
|
|||
tooltip: function(event) {
|
||||
// e.offsetX does not work in Firefox
|
||||
var position = getPosition(event.clientX - that.offset().left),
|
||||
tooltip = Ox.isFunction(self.options.tooltip)
|
||||
? self.options.tooltip() : self.options.tooltip;
|
||||
tooltip = Ox.isFunction(self.options.videoTooltip)
|
||||
? self.options.videoTooltip() : self.options.videoTooltip;
|
||||
self.$frame.attr({src: getClosestFrame(position)});
|
||||
self.timeout && clearTimeout(self.timeout);
|
||||
self.timeout = setTimeout(function() {
|
||||
|
|
Loading…
Reference in a new issue