intridea/sketch.js — pull request #4 by kmstrong (2012-10-03 22:14:43+00:00)
Title: Fix for eraser bug in firefox 

The way the eraser tool is currently implemented causes it to erase the entire sketch in firefox. This is a simple fix which will make the eraser work the same way it does in chrome.

see: http://stackoverflow.com/questions/3328906/erasing-in-html5-canvas

"Note that firefox 3.6/4.0 implement 'copy' by erasing the entire background first. The w3c docs aren't clear as to what should happen here. Chrome (webkit?) interprets the specs as 'only where pixels are actually drawn', for example the result of a stroke()."