add missing index

This commit is contained in:
David Gil 2013-08-20 02:55:44 +02:00
parent c613aeb988
commit cdfe8ba62d
3 changed files with 3 additions and 3 deletions

View File

@ -204,7 +204,7 @@ class Morris.Line extends Morris.Grid
_drawLineFor: (index) ->
path = @paths[index]
if path isnt null
@drawLinePath path, @colorFor(null, index, 'line')
@drawLinePath path, @colorFor(null, index, 'line'), index
# create a path for a data series
#

View File

@ -925,7 +925,7 @@
var path;
path = this.paths[index];
if (path !== null) {
return this.drawLinePath(path, this.colorFor(null, index, 'line'));
return this.drawLinePath(path, this.colorFor(null, index, 'line'), index);
}
};

2
morris.min.js vendored

File diff suppressed because one or more lines are too long