Clean up mouseup handler.

This commit is contained in:
Jürg Lehni 2011-05-15 22:43:30 +01:00
parent 83373576f2
commit 824870196e

View file

@ -217,14 +217,14 @@ var DocumentView = this.DocumentView = Base.extend({
if (!dragging)
return;
dragging = false;
if (!tool)
return;
curPoint = null;
if (tool.eventInterval != null)
timer = clearInterval(timer);
tool.onHandleEvent('mouseup', viewToArtwork(event), event);
if (tool.onMouseUp)
that.draw();
if (tool) {
if (tool.eventInterval != null)
timer = clearInterval(timer);
tool.onHandleEvent('mouseup', viewToArtwork(event), event);
if (tool.onMouseUp)
that.draw();
}
}
return {