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

Version Path
picky-statistics-4.5.0 lib/picky-statistics/application/javascripts/d3/src/core/selection-style.js
picky-statistics-4.4.2 lib/picky-statistics/application/javascripts/d3/src/core/selection-style.js
picky-statistics-4.4.1 lib/picky-statistics/application/javascripts/d3/src/core/selection-style.js
picky-statistics-4.4.0 lib/picky-statistics/application/javascripts/d3/src/core/selection-style.js
picky-statistics-4.3.2 lib/picky-statistics/application/javascripts/d3/src/core/selection-style.js
picky-statistics-4.3.1 lib/picky-statistics/application/javascripts/d3/src/core/selection-style.js
picky-statistics-4.3.0 lib/picky-statistics/application/javascripts/d3/src/core/selection-style.js
picky-statistics-4.2.4 lib/picky-statistics/application/javascripts/d3/src/core/selection-style.js
picky-statistics-4.2.3 lib/picky-statistics/application/javascripts/d3/src/core/selection-style.js
picky-statistics-4.2.2 lib/picky-statistics/application/javascripts/d3/src/core/selection-style.js
picky-statistics-4.2.1 lib/picky-statistics/application/javascripts/d3/src/core/selection-style.js
picky-statistics-4.2.0 lib/picky-statistics/application/javascripts/d3/src/core/selection-style.js
picky-statistics-4.1.0 lib/picky-statistics/application/javascripts/d3/src/core/selection-style.js
picky-statistics-4.0.9 lib/picky-statistics/application/javascripts/d3/src/core/selection-style.js
picky-statistics-4.0.8 lib/picky-statistics/application/javascripts/d3/src/core/selection-style.js
picky-statistics-4.0.7 lib/picky-statistics/application/javascripts/d3/src/core/selection-style.js
picky-statistics-4.0.6 lib/picky-statistics/application/javascripts/d3/src/core/selection-style.js
picky-statistics-4.0.5 lib/picky-statistics/application/javascripts/d3/src/core/selection-style.js
picky-statistics-4.0.4 lib/picky-statistics/application/javascripts/d3/src/core/selection-style.js
picky-statistics-4.0.3 lib/picky-statistics/application/javascripts/d3/src/core/selection-style.js