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

Popular posts from this blog

Getting Started: Quick Setup for GXT 3 (includes reset.css link how to)

How to setup GXT 3 examples, samples and demos

ExtJs4 : Dynamically Add Columns