SeaUrchinBot / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

goog.structs.trie.remove(key) always removes parents #519

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1. If you have a node with key abc and a child node with key abcd, removing 
abcd removes abc too if abcd is the last child node of abc.

What is the expected output? What do you see instead?
If abc has a value, it should not be removed. Only if the parent does not have 
a value it should be removed.

What version of the product are you using? On what operating system?

Please provide any additional information below.

Note: we cannot accept patches without the contributor license agreement
being signed. See http://code.google.com/p/closure-
library/wiki/Contributors for more info.

Original issue reported on code.google.com by prakashr...@gmail.com on 3 Dec 2012 at 4:38