deleted event

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@526 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Kevin Kwok 2009-09-02 18:17:14 +00:00
parent 7704520e34
commit d10ed7bb08
1 changed files with 2 additions and 0 deletions

View File

@ -103,6 +103,7 @@ function RemoveElementCommand(elem, parent, text) {
this.apply = function() {
this.parent = this.elem.parentNode;
this.elem = this.parent.removeChild(this.elem);
call("deleted", [this.elem])
};
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);
call("selected", selectedElements);
call("deleted", selectedElements);
};
this.moveToTopSelectedElement = function() {