js: Patch vendor library sparkline to ensure compatibility with jQuery v3
This commit is contained in:
parent
f8d3f43965
commit
3310bbc680
|
@ -711,9 +711,9 @@
|
||||||
var $canvas = $(canvas.canvas);
|
var $canvas = $(canvas.canvas);
|
||||||
this.canvas = canvas;
|
this.canvas = canvas;
|
||||||
this.$canvas = $canvas;
|
this.$canvas = $canvas;
|
||||||
$canvas.mouseenter($.proxy(this.mouseenter, this));
|
$canvas.on('mouseenter', $.proxy(this.mouseenter, this));
|
||||||
$canvas.mouseleave($.proxy(this.mouseleave, this));
|
$canvas.on('mouseleave', $.proxy(this.mouseleave, this));
|
||||||
$canvas.click($.proxy(this.mouseclick, this));
|
$canvas.on('click', $.proxy(this.mouseclick, this));
|
||||||
},
|
},
|
||||||
|
|
||||||
reset: function (removeTooltip) {
|
reset: function (removeTooltip) {
|
||||||
|
@ -732,8 +732,8 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
mouseenter: function (e) {
|
mouseenter: function (e) {
|
||||||
$(document.body).unbind('mousemove.jqs');
|
$(document.body).off('mousemove.jqs');
|
||||||
$(document.body).bind('mousemove.jqs', $.proxy(this.mousemove, this));
|
$(document.body).on('mousemove.jqs', $.proxy(this.mousemove, this));
|
||||||
this.over = true;
|
this.over = true;
|
||||||
this.currentPageX = e.pageX;
|
this.currentPageX = e.pageX;
|
||||||
this.currentPageY = e.pageY;
|
this.currentPageY = e.pageY;
|
||||||
|
@ -746,7 +746,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
mouseleave: function () {
|
mouseleave: function () {
|
||||||
$(document.body).unbind('mousemove.jqs');
|
$(document.body).off('mousemove.jqs');
|
||||||
var splist = this.splist,
|
var splist = this.splist,
|
||||||
spcount = splist.length,
|
spcount = splist.length,
|
||||||
needsRefresh = false,
|
needsRefresh = false,
|
||||||
|
@ -852,8 +852,8 @@
|
||||||
this.offsetLeft = offset.left;
|
this.offsetLeft = offset.left;
|
||||||
this.offsetTop = offset.top;
|
this.offsetTop = offset.top;
|
||||||
this.hidden = true;
|
this.hidden = true;
|
||||||
$(window).unbind('resize.jqs scroll.jqs');
|
$(window).off('resize.jqs scroll.jqs');
|
||||||
$(window).bind('resize.jqs scroll.jqs', $.proxy(this.updateWindowDims, this));
|
$(window).on('resize.jqs scroll.jqs', $.proxy(this.updateWindowDims, this));
|
||||||
this.updateWindowDims();
|
this.updateWindowDims();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -928,7 +928,7 @@
|
||||||
this.tooltip.remove();
|
this.tooltip.remove();
|
||||||
this.sizetip.remove();
|
this.sizetip.remove();
|
||||||
this.sizetip = this.tooltip = undefined;
|
this.sizetip = this.tooltip = undefined;
|
||||||
$(window).unbind('resize.jqs scroll.jqs');
|
$(window).off('resize.jqs scroll.jqs');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue