Skip to content

Commit 5d9bf44

Browse files
committed
Remove unused argument.
1 parent 76921e0 commit 5d9bf44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/morris.donut.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class Morris.Donut extends Morris.EventEmitter
7777
seg = new Morris.DonutSegment(
7878
cx, cy, w*2, w, last, next,
7979
@options.colors[idx % @options.colors.length],
80-
@options.backgroundColor, @data[i], idx, @raphael)
80+
@options.backgroundColor, idx, @raphael)
8181
seg.render()
8282
@segments.push seg
8383
seg.on 'hover', @select
@@ -136,7 +136,7 @@ class Morris.Donut extends Morris.EventEmitter
136136
#
137137
# @private
138138
class Morris.DonutSegment extends Morris.EventEmitter
139-
constructor: (@cx, @cy, @inner, @outer, p0, p1, @color, @backgroundColor, @data, @index, @raphael) ->
139+
constructor: (@cx, @cy, @inner, @outer, p0, p1, @color, @backgroundColor, @index, @raphael) ->
140140
@sin_p0 = Math.sin(p0)
141141
@cos_p0 = Math.cos(p0)
142142
@sin_p1 = Math.sin(p1)

0 commit comments

Comments
 (0)