Sha256: 99f34934bc3458068c168a274a17e5c5907ed1b77446a10e037b977c47c8e832
Contents?: true
Size: 562 Bytes
Versions: 31
Compression:
Stored size: 562 Bytes
Contents
d3_selectionPrototype.property = function(name, value) { // If no value is specified, return the first value. if (arguments.length < 2) return this.node()[name]; function propertyNull() { delete this[name]; } function propertyConstant() { this[name] = value; } function propertyFunction() { var x = value.apply(this, arguments); if (x == null) delete this[name]; else this[name] = x; } return this.each(value == null ? propertyNull : (typeof value === "function" ? propertyFunction : propertyConstant)); };
Version data entries
31 entries across 31 versions & 2 rubygems