-
Notifications
You must be signed in to change notification settings - Fork 22.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade dependencies; remove Sizzle dependency.
- Loading branch information
Showing
13 changed files
with
50 additions
and
1,483 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "d3", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"main": "./d3.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
var document = global.document = require("jsdom").jsdom("<html><head></head><body></body></html>"), | ||
window = global.window = document.createWindow(), | ||
navigator = global.navigator = window.navigator, | ||
getComputedStyle = global.getComputedStyle = window.getComputedStyle, | ||
CSSStyleDeclaration = global.CSSStyleDeclaration = window.CSSStyleDeclaration; | ||
|
||
// https://github.com/chad3814/CSSStyleDeclaration/issues/3 | ||
var CSSStyleDeclaration_setProperty = CSSStyleDeclaration.prototype.setProperty; | ||
CSSStyleDeclaration.prototype.setProperty = function(name, value, priority) { | ||
return CSSStyleDeclaration_setProperty.call(this, name + "", value == null ? null : value + "", priority == null ? null : priority + ""); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,16 @@ | ||
var self = this, | ||
globals = ["document", "window", "navigator", "CSSStyleDeclaration", "d3", "Sizzle"], | ||
var globals = ["document", "window", "navigator", "CSSStyleDeclaration", "getComputedStyle", "d3"], | ||
globalValues = {}; | ||
|
||
globals.forEach(function(global) { | ||
if (global in self) globalValues[global] = self[global]; | ||
globals.forEach(function(g) { | ||
if (g in global) globalValues[g] = global[g]; | ||
}); | ||
|
||
document = require("jsdom").jsdom("<html><head></head><body></body></html>"); | ||
window = document.createWindow(); | ||
navigator = window.navigator; | ||
CSSStyleDeclaration = window.CSSStyleDeclaration; | ||
|
||
Sizzle = require("sizzle"); | ||
|
||
require("./globals"); | ||
require("./d3"); | ||
|
||
module.exports = d3; | ||
|
||
globals.forEach(function(global) { | ||
if (global in globalValues) self[global] = globalValues[global]; | ||
else delete self[global]; | ||
globals.forEach(function(g) { | ||
if (g in globalValues) global[g] = globalValues[g]; | ||
else delete global[g]; | ||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.