Skip to content
  • Mike Bostock's avatar
    Use captured references for document and window. · 0991f3b0
    Mike Bostock authored
    This avoids an inconsistency (discussed in #1044) when using D3 inside Node.js,
    where D3 internally creates a JSDOM document during initialization, but then
    subsequently depends on the current global document, which is not exposed. D3
    now always refers to the global document at the time of initialization, and
    does not depend on the current global document or window.
    0991f3b0