Removal of some debugging code and commented out code
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@839 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -1467,27 +1467,6 @@ function BatchCommand(text) {
|
|||||||
start_x = x;
|
start_x = x;
|
||||||
start_y = y;
|
start_y = y;
|
||||||
|
|
||||||
/*
|
|
||||||
var t = evt.target;
|
|
||||||
// TODO: select on mouseup when it was a click
|
|
||||||
// if this element is in a group, go up until we reach the top-level group
|
|
||||||
// just below the layer groups
|
|
||||||
// TODO: once we implement links, we also would have to check for <a> elements
|
|
||||||
while (t.parentNode.parentNode.tagName == "g") {
|
|
||||||
t = t.parentNode;
|
|
||||||
}
|
|
||||||
// if we are not in the middle of creating a path, and we've clicked on some shape,
|
|
||||||
// then go to Select mode.
|
|
||||||
// WebKit returns <div> when the canvas is clicked, Firefox/Opera return <svg>
|
|
||||||
if ( (current_mode != "poly" || current_poly_pts.length == 0) &&
|
|
||||||
t.parentNode.id != "selectorParentGroup" &&
|
|
||||||
t.id != "svgcanvas" && t.id != "svgroot")
|
|
||||||
{
|
|
||||||
// switch into "select" mode if we've clicked on an element
|
|
||||||
canvas.setMode("select");
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
switch (current_mode) {
|
switch (current_mode) {
|
||||||
case "select":
|
case "select":
|
||||||
started = true;
|
started = true;
|
||||||
@@ -1667,7 +1646,7 @@ function BatchCommand(text) {
|
|||||||
break;
|
break;
|
||||||
case "ellipse":
|
case "ellipse":
|
||||||
started = true;
|
started = true;
|
||||||
var shp = addSvgElementFromJson({
|
addSvgElementFromJson({
|
||||||
"element": "ellipse",
|
"element": "ellipse",
|
||||||
"attr": {
|
"attr": {
|
||||||
"cx": x,
|
"cx": x,
|
||||||
|
|||||||
Reference in New Issue
Block a user