Sha256: 0d2edf8845eb4f3755b98283c04bee9893ac183e4a5e4a671a66c6da2d006de9

Contents?: true

Size: 365 Bytes

Versions: 6

Compression:

Stored size: 365 Bytes

Contents

var d3_arraySubclass = [].__proto__?

// Until ECMAScript supports array subclassing, prototype injection works well.
function(array, prototype) {
  array.__proto__ = prototype;
}:

// And if your browser doesn't support __proto__, we'll use direct extension.
function(array, prototype) {
  for (var property in prototype) array[property] = prototype[property];
};

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bum-0.0.17 public/d3/src/core/array.js
bum-0.0.16 public/d3/src/core/array.js
bum-0.0.15 public/d3/src/core/array.js
bum-0.0.14 public/d3/src/core/array.js
bum-0.0.13 public/d3/src/core/array.js
bum-0.0.12 public/d3/src/core/array.js