rename tooltip to videoTooltip

This commit is contained in:
rolux 2013-02-11 12:03:40 +05:30
parent c567a80a44
commit 4627b2e344

View file

@ -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() {