deleted event
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@526 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
7704520e34
commit
d10ed7bb08
|
@ -103,6 +103,7 @@ function RemoveElementCommand(elem, parent, text) {
|
||||||
this.apply = function() {
|
this.apply = function() {
|
||||||
this.parent = this.elem.parentNode;
|
this.parent = this.elem.parentNode;
|
||||||
this.elem = this.parent.removeChild(this.elem);
|
this.elem = this.parent.removeChild(this.elem);
|
||||||
|
call("deleted", [this.elem])
|
||||||
};
|
};
|
||||||
|
|
||||||
this.unapply = function() { this.elem = this.parent.insertBefore(this.elem, this.elem.nextSibling); };
|
this.unapply = function() { this.elem = this.parent.insertBefore(this.elem, this.elem.nextSibling); };
|
||||||
|
@ -2760,6 +2761,7 @@ function SvgCanvas(c)
|
||||||
}
|
}
|
||||||
if (!batchCmd.isEmpty()) addCommandToHistory(batchCmd);
|
if (!batchCmd.isEmpty()) addCommandToHistory(batchCmd);
|
||||||
call("selected", selectedElements);
|
call("selected", selectedElements);
|
||||||
|
call("deleted", selectedElements);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.moveToTopSelectedElement = function() {
|
this.moveToTopSelectedElement = function() {
|
||||||
|
|
Loading…
Reference in New Issue