new nodelete mode, using icon

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@532 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Kevin Kwok
2009-09-02 23:10:20 +00:00
parent bf1517652e
commit 7010b30254
2 changed files with 5 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
var shapetime = {};
var nodelete = false;
function stateUpdated() {
// 'state' is an object of key-value pairs that map ids to JSON serialization of SVG elements
@@ -20,8 +21,9 @@ function stateUpdated() {
}
//keys.remove(k);
} else if(this.id != "selectorParentGroup"){
} else if(this.id != "selectorParentGroup" && !nodelete){
//console.log(this)
this.parentNode.removeChild(this);
}
});