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

Ensure input data is an Array #62

Open sloria opened 10 years ago

sloria commented 10 years ago

HGrid expects its input data to be an Array or and object that of the form {data: [...array of data...].

If a developer unknowingly/accidentally enters data as an Object, HGrid will fail in unexpected ways. This can be a major gotcha for new users.

HGrid should fail early if an improper data format is passed in.

h/t @brianjgeiger