Closed ninjatronic closed 10 years ago
No idiocy, I think it's just that element
is a string and it's expecting a DOM node.
Try something like and let me know if it fixes this issue:
...
element: this.$('.map-container')[0],
...
If it does, I should add better warnings if the wrong type of values are sent in.
Yes, that does the trick. Thanks
Here is the repo if you care to try to reproduce this. Very basic code. Simply
npm install && ember serve
- thenhttp://localhost:4200
.I am using
datamaps.world.js
as you can see in the Brocfile.This is the generated javascript that tries to draw the map.
There are lots of these errors in the console...
Hopefully this is not another case of my idiocy leaking