mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-10 21:36:34 +01:00
Merge branch 'master' of github.com:oesmith/morris.js
Conflicts: morris.min.js
This commit is contained in:
commit
b9f53a8fdb
@ -98,8 +98,7 @@ class Morris.Donut extends Morris.EventEmitter
|
||||
|
||||
# @private
|
||||
click: (idx) =>
|
||||
if typeof idx is 'number' then segment = @segments[idx] else segment = idx
|
||||
@fire 'click', segment.idx, segment.data
|
||||
@fire 'click', idx, @data[idx]
|
||||
|
||||
# Select the segment at the given index.
|
||||
select: (idx) =>
|
||||
|
@ -1572,13 +1572,7 @@
|
||||
};
|
||||
|
||||
Donut.prototype.click = function(idx) {
|
||||
var segment;
|
||||
if (typeof idx === 'number') {
|
||||
segment = this.segments[idx];
|
||||
} else {
|
||||
segment = idx;
|
||||
}
|
||||
return this.fire('click', segment.idx, segment.data);
|
||||
return this.fire('click', idx, this.data[idx]);
|
||||
};
|
||||
|
||||
Donut.prototype.select = function(idx) {
|
||||
|
2
morris.min.js
vendored
2
morris.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user