UPDATE by Mirko (here you are sir)
Caleb Evans gave me the solution for my issue:
The clearCanvas()
method was only intended to be used with non-layer (static) drawings. Whenever you have at least one jCanvas layer for your canvas, clearCanvas()
becomes inapplicable.
if you wish to remove a layer completely (assuming you will never need it again), use the removeLayer()
method.
$('#clear').click(function(){
$('canvas').removeLayers();
$('canvas').drawLayers();
});