Demote JSDOM to development dependency; fix #2190.
Code that previously assumed a global document or window now uses the related node’s ownerDocument or ownerDocument.defaultView as appropriate. If no related node is available, the corresponding code will crash; however, the rest of D3 will work just fine. For example, you can’t use d3.select(string) unless a global document is available; it just doesn’t make sense. Use d3.select(node) instead, followed by selection.select(string). Code that previously checked for a global on the window (e.g., XDomainRequest) now uses the global context (`this`) rather than the window.
This source diff could not be displayed because it is too large. You can view the blob instead.
... | ... | @@ -50,14 +50,12 @@ |
"spm": { | ||
"main": "d3.js" | ||
}, | ||
"dependencies": { | ||
"jsdom": "1.0.0" | ||
}, | ||
"devDependencies": { | ||
"smash": "~0.0.12", | ||
"uglify-js": "2.4.0", | ||
"vows": "0.7.0", | ||
"seedrandom": "2.3.1" | ||
"jsdom": "3", | ||
"seedrandom": "2", | ||
"smash": "0.0", | ||
"uglify-js": "2.4", | ||
"vows": "0.8" | ||
}, | ||
"scripts": { | ||
"test": "vows; echo" | ||
... | ... |
src/compat/array.js
0 → 100644