I'm getting "Cannot read property 'length' of undefined" error while instantiating an empty DataTable. This used to be possible in YUI 3.5.
Avoid processing columns if there aren't any to allow empty tables.
Hi Mark! Thank you for this contribution! Sorry it's taken so long to update it. I'll be checking this in to 3.x for the next release. Once that's in, this pull request will reflect that.
@triptych This should be merged into master.
@markwoon A few checklist items for you.
Do you have a CLA filed with us (I dont see one listed)? For pull requests we need a CLA from the contributor: http://yuilibrary.com/contribute/cla/
Also do you have a testcase you can publish with this to confirm that this fixes your empty DataTable issue?
I just filed a CLA.
I don't have a testcase, sorry.
Ok will check this into dev-master for this upcoming release.
Adding unit test for pr #176
Build files for pr #176