ming-codes / ember-cli-d3

An ember-cli addon to provide D3 integration into Ember app.
MIT License
43 stars 18 forks source link

Fix weird problem where classList is null not empty array #71

Closed nagirrab closed 8 years ago

nagirrab commented 8 years ago

Hey,

I found a strange bug when running with phantomjs in headless mode while running on Codeship where node.classList was undefined rather than [], which caused everything to blow up with TypeError: 'undefined' is not an object (evaluating 'node.classList[0]'). This simple check fixes the problem.

Let me know if you have any questions about it.

ming-codes commented 8 years ago

Looks good! Thanks!