fix component support
Merge branch 'fix-component-support' of https://github.com/danmilon/d3 into fix-component-support
Move edits to src/component.js.