My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
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
Status:  Duplicate
Merged:  issue 420
Owner:  ----
Closed:  Sep 2013


 
Reported by augursys...@gmail.com, Jul 22, 2013
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 23, 2013
Project Member #1 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Accepted
Labels: Milestone-Release1.2.5
Jul 27, 2013
Project Member #2 moo...@wwwendt.de
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
Project Member #3 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Duplicate
Mergedinto: 420

Powered by Google Project Hosting