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,
|
position: void 0,
|
||||||
scaleToFill: false,
|
scaleToFill: false,
|
||||||
timeline: '',
|
timeline: '',
|
||||||
tooltip: null,
|
videoTooltip: null,
|
||||||
width: 256
|
width: 256
|
||||||
})
|
})
|
||||||
.options(options || {})
|
.options(options || {})
|
||||||
|
@ -70,8 +70,8 @@ Ox.VideoPreview = function(options, self) {
|
||||||
tooltip: function(event) {
|
tooltip: function(event) {
|
||||||
// e.offsetX does not work in Firefox
|
// e.offsetX does not work in Firefox
|
||||||
var position = getPosition(event.clientX - that.offset().left),
|
var position = getPosition(event.clientX - that.offset().left),
|
||||||
tooltip = Ox.isFunction(self.options.tooltip)
|
tooltip = Ox.isFunction(self.options.videoTooltip)
|
||||||
? self.options.tooltip() : self.options.tooltip;
|
? self.options.videoTooltip() : self.options.videoTooltip;
|
||||||
self.$frame.attr({src: getClosestFrame(position)});
|
self.$frame.attr({src: getClosestFrame(position)});
|
||||||
self.timeout && clearTimeout(self.timeout);
|
self.timeout && clearTimeout(self.timeout);
|
||||||
self.timeout = setTimeout(function() {
|
self.timeout = setTimeout(function() {
|
||||||
|
|
Loading…
Reference in a new issue