Conflicts:
	morris.min.js
This commit is contained in:
Olly Smith 2014-06-14 08:01:24 +01:00
commit 4346d98fdd
3 changed files with 15 additions and 8 deletions

View File

@ -11,9 +11,12 @@ class Morris.Hover
@options.parent.append(@el)
update: (html, x, y) ->
@html(html)
@show()
@moveTo(x, y)
if not html
@hide()
else
@html(html)
@show()
@moveTo(x, y)
html: (content) ->
@el.html(content)

View File

@ -663,9 +663,13 @@ Licensed under the BSD-2-Clause License.
}
Hover.prototype.update = function(html, x, y) {
this.html(html);
this.show();
return this.moveTo(x, y);
if (!html) {
return this.hide();
} else {
this.html(html);
this.show();
return this.moveTo(x, y);
}
};
Hover.prototype.html = function(content) {

4
morris.min.js vendored

File diff suppressed because one or more lines are too long