guipn/sinful.js — pull request #1 by imbcmdth (2012-06-25 03:39:20+00:00)
Title: Allow deepCopy to handle objects with cycles

Previously, deepCopy would crash the browser or hit the max call stack due to infinite recursion if any object contained cycles. Added a simple mechanism to detect and correctly copy the right previously-copy values to the same properties.