Sha256: cc9ee5acebdfe185a8093d73f0dc64787536630308ecdd48ecc7390fe110121d
Contents?: true
Size: 738 Bytes
Versions: 31
Compression:
Stored size: 738 Bytes
Contents
d3_selectionPrototype.style = function(name, value, priority) { if (arguments.length < 3) priority = ""; // If no value is specified, return the first value. if (arguments.length < 2) return window .getComputedStyle(this.node(), null) .getPropertyValue(name); function styleNull() { this.style.removeProperty(name); } function styleConstant() { this.style.setProperty(name, value, priority); } function styleFunction() { var x = value.apply(this, arguments); if (x == null) this.style.removeProperty(name); else this.style.setProperty(name, x, priority); } return this.each(value == null ? styleNull : (typeof value === "function" ? styleFunction : styleConstant)); };
Version data entries
31 entries across 31 versions & 2 rubygems