cos-archives / hgrid

[UNMAINTAINED] A Javascript-based hierarchical grid that can be used to manage and organize file/folder-like data
Apache License 2.0
23 stars 14 forks source link

browser crashes if UIDs repeat #24

Closed jmcarp closed 11 years ago

jmcarp commented 11 years ago

If two or more items have the same UID, my browser becomes unresponsive. HGrid should probably raise an error instead, or remove the offending item(s) with a warning.

xferguson commented 11 years ago

I added an alert() and some console.error messages. You can always comment some of that out if you don't want it, but I think it's all helpful.

The duplicates are deleted from the data set. Yes, this does cause parents to get confused, but they were being confused anyway.