Permalink
Browse files

Call #clear directly instead of triggering an event.

  • Loading branch information...
jimmycuadra committed Nov 23, 2012
1 parent 44bfba5 commit 2f8f93967a83dba50c348a629b2e1755ad33941b
Showing with 1 addition and 1 deletion.
  1. +1 −1 source/javascripts/models/cell.js.coffee
@@ -35,7 +35,7 @@ class ph.Cell extends Backbone.Model
upperNeighbor = @get("upperNeighbor")
if color
- @trigger("clear")
+ @clear()
color
else if upperNeighbor
upperNeighbor.fallingBlockColor()

0 comments on commit 2f8f939

Please sign in to comment.