MCPcopy
hub / github.com/jipegit/OSXAuditor / d3_class

Function d3_class

d3-3.2.8/d3.js:193–204  ·  view source on GitHub ↗
(ctor, properties)

Source from the content-addressed store, hash-verified

191 return k;
192 }
193 function d3_class(ctor, properties) {
194 try {
195 for (var key in properties) {
196 Object.defineProperty(ctor.prototype, key, {
197 value: properties[key],
198 enumerable: false
199 });
200 }
201 } catch (e) {
202 ctor.prototype = properties;
203 }
204 }
205 d3.map = function(object) {
206 var map = new d3_Map();
207 if (object instanceof d3_Map) object.forEach(function(key, value) {

Callers 1

d3.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected