Commit 8cff6d93 authored by Jérome Perrin's avatar Jérome Perrin

fix variable name

parent ca7f49c6
......@@ -45,14 +45,14 @@
top: 0,
left: 0
},
stop: function (tool) {
stop: function (event) {
var box_top, box_left, _class;
var offset = $("#main").offset();
box_top = tool.clientY - offset.top + "px";
box_left = tool.clientX - offset.left + "px";
box_top = event.clientY - offset.top + "px";
box_left = event.clientX - offset.left + "px";
var relative_position = dream_instance.convertToRelativePosition(
box_left, box_top);
_class = tool.target.id.replace('-', '.'); // XXX - vs .
_class = event.target.id.replace('-', '.'); // XXX - vs .
dream_instance.newElement({
coordinate: {
top: relative_position[1],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment