mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-10 21:36:34 +01:00
Fix hideHover (fixes #236).
This commit is contained in:
parent
8bc716f820
commit
8493b6ec25
@ -153,7 +153,7 @@ class Morris.Bar extends Morris.Grid
|
||||
#
|
||||
# @private
|
||||
onHoverOut: =>
|
||||
if @options.hideHover is 'auto'
|
||||
if @options.hideHover isnt false
|
||||
@hover.hide()
|
||||
|
||||
# hover content for a point
|
||||
|
@ -84,7 +84,7 @@ class Morris.Line extends Morris.Grid
|
||||
#
|
||||
# @private
|
||||
onHoverOut: =>
|
||||
if @options.hideHover is 'auto'
|
||||
if @options.hideHover isnt false
|
||||
@displayHoverForRow(null)
|
||||
|
||||
# display a hover popup over the given row
|
||||
|
@ -751,7 +751,7 @@
|
||||
};
|
||||
|
||||
Line.prototype.onHoverOut = function() {
|
||||
if (this.options.hideHover === 'auto') {
|
||||
if (this.options.hideHover !== false) {
|
||||
return this.displayHoverForRow(null);
|
||||
}
|
||||
};
|
||||
@ -1474,7 +1474,7 @@
|
||||
};
|
||||
|
||||
Bar.prototype.onHoverOut = function() {
|
||||
if (this.options.hideHover === 'auto') {
|
||||
if (this.options.hideHover !== false) {
|
||||
return this.hover.hide();
|
||||
}
|
||||
};
|
||||
|
2
morris.min.js
vendored
2
morris.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user