Sha256: bd8eadbdd692c235138b8626cfd98a4e6e0cc55b173f4b92425694020c22d35d
Contents?: true
Size: 777 Bytes
Versions: 25
Compression:
Stored size: 777 Bytes
Contents
var d3_array = d3_arraySlice; // conversion for NodeLists function d3_arrayCopy(pseudoarray) { var i = -1, n = pseudoarray.length, array = []; while (++i < n) array.push(pseudoarray[i]); return array; } function d3_arraySlice(pseudoarray) { return Array.prototype.slice.call(pseudoarray); } try { d3_array(document.documentElement.childNodes)[0].nodeType; } catch(e) { d3_array = d3_arrayCopy; } 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
25 entries across 25 versions & 1 rubygems