Advertisement
MrPolywhirl

d3: __proto__ vs Object.create

Jan 21st, 2015
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. d3.min.js Throws a warning in Firefox
  2.  
  3. > mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create
  4.  
  5. https://github.com/mbostock/d3/issues/1805
  6. http://stackoverflow.com/questions/15339550/difference-between-proto-link-and-object-create
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement