| Issue 445: | An empty string "" should be an acceptable key name | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What new or enhanced feature are you proposing? Currently, setting a key name to "" results in a serial key being assigned by dynatree, as if the key were null. I would like to see "" treated as a valid string, therefore a valid key. What goal would this enhancement help you achieve? I was trying to use fully-qualified path names as my keys. For convenience of string joining with a separator (e.g. "/"), I wanted to use an empty string "" for the key of my root. So, if the root's child node was named "child1", its key would be: "" + /" + "child1", therefore "/child1".
Jul 27, 2013
I thought that this should also be fixed with issue 420 Did you try witj the lates code from the trunk? This is the patch for 420: // if( !data.key ){ if( data.key == null ){ // test for null OR undefined ( issue 420 ) data.key = "_" + tree._nodeCount++; }else{ data.key = "" + data.key; }
Status:
Waiting
Sep 7, 2013
(No comment was entered for this change.)
Status:
Duplicate
Mergedinto: 420 |
Labels: Milestone-Release1.2.5