MCPcopy Index your code
hub / github.com/csev/py4e / d3_class

Function d3_class

code3/gmane/d3.v2.js:14–25  ·  view source on GitHub ↗
(ctor, properties)

Source from the content-addressed store, hash-verified

12}
13d3 = {version: "2.8.1"}; // semver
14function d3_class(ctor, properties) {
15 try {
16 for (var key in properties) {
17 Object.defineProperty(ctor.prototype, key, {
18 value: properties[key],
19 enumerable: false
20 });
21 }
22 } catch (e) {
23 ctor.prototype = properties;
24 }
25}
26var d3_array = d3_arraySlice; // conversion for NodeLists
27
28function d3_arrayCopy(pseudoarray) {

Callers 1

d3.v2.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected