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:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user