fabric.StaticCanvas.clear() delete _activeObject

If canvas is cleared ```canvas._activeObject``` should be removed.
This commit is contained in:
Kienz 2013-03-28 09:06:36 +01:00
parent 40bda07140
commit dfec3dd2f0

View file

@ -501,6 +501,9 @@
if (this.discardActiveGroup) {
this.discardActiveGroup();
}
if (this.discardActiveObject) {
this.discardActiveObject();
}
this.clearContext(this.contextContainer);
if (this.contextTop) {
this.clearContext(this.contextTop);