mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-14 07:41:11 +01:00
Fix hideHover (fixes #236).
This commit is contained in:
parent
8bc716f820
commit
8493b6ec25
4 changed files with 5 additions and 5 deletions
|
@ -153,7 +153,7 @@ class Morris.Bar extends Morris.Grid
|
||||||
#
|
#
|
||||||
# @private
|
# @private
|
||||||
onHoverOut: =>
|
onHoverOut: =>
|
||||||
if @options.hideHover is 'auto'
|
if @options.hideHover isnt false
|
||||||
@hover.hide()
|
@hover.hide()
|
||||||
|
|
||||||
# hover content for a point
|
# hover content for a point
|
||||||
|
|
|
@ -84,7 +84,7 @@ class Morris.Line extends Morris.Grid
|
||||||
#
|
#
|
||||||
# @private
|
# @private
|
||||||
onHoverOut: =>
|
onHoverOut: =>
|
||||||
if @options.hideHover is 'auto'
|
if @options.hideHover isnt false
|
||||||
@displayHoverForRow(null)
|
@displayHoverForRow(null)
|
||||||
|
|
||||||
# display a hover popup over the given row
|
# display a hover popup over the given row
|
||||||
|
|
|
@ -751,7 +751,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
Line.prototype.onHoverOut = function() {
|
Line.prototype.onHoverOut = function() {
|
||||||
if (this.options.hideHover === 'auto') {
|
if (this.options.hideHover !== false) {
|
||||||
return this.displayHoverForRow(null);
|
return this.displayHoverForRow(null);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1474,7 +1474,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
Bar.prototype.onHoverOut = function() {
|
Bar.prototype.onHoverOut = function() {
|
||||||
if (this.options.hideHover === 'auto') {
|
if (this.options.hideHover !== false) {
|
||||||
return this.hover.hide();
|
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 a new issue