|
@@ -34,9 +34,10 @@ export const app = (function() {
|
|
|
}
|
|
|
});
|
|
|
_stage.on("click tap", function(e) {
|
|
|
- let tool = _getSelectedTool();
|
|
|
+ const tool = _getSelectedTool();
|
|
|
if (tool != undefined) {
|
|
|
- tool.draw(tool.object);
|
|
|
+ const fun = tool.draw.bind(tool);
|
|
|
+ fun();
|
|
|
return;
|
|
|
}
|
|
|
if (e.target === _stage) {
|