Clear canvas raphael style when using draw component in Extjs4

I was moving some code from raphael.js into ExtJs4 beta 1, and I found this very useful;

//in rapheal
paper.clear();


//in Extjs4
paper.surface.removeAll();


(Here paper is an instance of a draw component)

Comments