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

View file

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

View file

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

File diff suppressed because one or more lines are too long