Skip to content

Commit

Permalink
🐛 Prevent generation of a returned array in drawLineDecorations method
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Nov 24, 2015
1 parent 4d0bcd4 commit 04fdd35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/mixins/canvas-drawer.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ class CanvasDrawer extends Mixin
context.fillStyle = @getDecorationColor(decoration)
context.fillRect(0,y,canvasWidth,lineHeight)

return

# Internal: Draws a highlight decoration on the passed-in context.
#
# It renders only the part of the highlight corresponding to the specified
Expand Down

0 comments on commit 04fdd35

Please sign in to comment.