mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
allow empty handler object to be passed to chart
This commit is contained in:
parent
29616381cb
commit
d1cd163c72
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ define(function (require) {
|
|||
|
||||
var events = this.events = new Dispatch(handler);
|
||||
|
||||
if (handler._attr.addTooltip) {
|
||||
if (_.get(this.handler, '_attr.addTooltip')) {
|
||||
var $el = this.handler.el;
|
||||
var formatter = this.handler.data.get('tooltipFormatter');
|
||||
|
||||
|
@ -35,7 +35,7 @@ define(function (require) {
|
|||
this.tooltip = new Tooltip('chart', $el, formatter, events);
|
||||
}
|
||||
|
||||
this._attr = _.defaults(handler._attr || {}, {});
|
||||
this._attr = _.defaults(this.handler._attr || {}, {});
|
||||
this._addIdentifier = _.bind(this._addIdentifier, this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue