Skip to content

Commit

Permalink
removing check on clippingRectangle being null in bit method
Browse files Browse the repository at this point in the history
as per thread in: jmoenig/morphic.js#24
  • Loading branch information
davidedc committed Feb 19, 2015
1 parent 4e0079d commit d2ad232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Morph.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ class Morph extends MorphicNode
# eventually invokes blit.
# Note that this morph might paint something on the screen even if
# it's not a "leaf".
blit: (aCanvas, clippingRectangle = @bounds) ->
blit: (aCanvas, clippingRectangle) ->
return null if @isMinimised or !@isVisible or !@image?
area = clippingRectangle.intersect(@bounds).round()
# test whether anything that we are going to be drawing
Expand Down

0 comments on commit d2ad232

Please sign in to comment.