Make scretch / eraser game in cocos2d js

How can I make scretch / eraser game in cocos2d js? I was able to erase sprite/image using drawNode but unable to find the information about erase completion i.e. when whole image is erased?