theshock/libcanvas — Issue #27: Correct way of removing/disposing all shapes
Author: stevozilik
Created: 2012-02-12 22:11:49+00:00
State: open

What is the correct way or removing and disposing all shapes from libCanvas object?
currently I do:

libCanvas.rmAllElements();

but I'm experiencing a problem with attached event handlers. If any of the existing shapes have attached even handlers:

shaper.listenMouse().clickable();
shaper.addEvent(['mousedown'], function (e) { alert('mousedown'); });

those event handers still trigger, even after the shape was removed from the canvas.