 
       neighbors = canvas.getNeighbors(pixel.x, pixel.y)
 
-      $.each neighbors, (index, neighbor) ->
+      neighbors.each (neighbor) ->
         if neighbor?.color().equal(originalColor)
           neighbor.color(newColor)
           q.push(neighbor)

  } = Pixie.Editor.Pixel

  colorNeighbors = (color) ->
    this.color(color)
    $.each this.canvas.getNeighbors(this.x, this.y), (i, neighbor) ->
      neighbor?.color(color)

  erase = (pixel, opacity) ->

      hotkeys: ['f', '6']
      mousedown: floodFill
      mouseenter: floodFill
