Fix hideHover (fixes #236).

This commit is contained in:
Olly Smith 2013-05-12 17:12:59 +01:00
parent 8bc716f820
commit 8493b6ec25
4 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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

File diff suppressed because one or more lines are too long