Sha256: 86efa826132a293323cc0d0c93ab48aae837af9ce27e860dde8ec3db8fed155e
Contents?: true
Size: 755 Bytes
Versions: 4
Compression:
Stored size: 755 Bytes
Contents
var fs = require("fs"), path = require("path"), document = require("jsdom").jsdom("<html><head></head><body></body></html>"), window = document.createWindow(); // https://github.com/chad3814/CSSStyleDeclaration/issues/3 var CSSStyleDeclaration_prototype = window.CSSStyleDeclaration.prototype, 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 + ""); }; module.exports = (new Function("window", "document", "return " + fs.readFileSync(path.join(__dirname, "d3.js"), "utf-8")) )(window, document);
Version data entries
4 entries across 4 versions & 2 rubygems