maqetta/maqetta — comment on commit 8e1193ae60e0c589631f3c0f168773d99cde4b12
File:  line 0
By peller:

dojo.clone is also susceptible to circular references, and unlike JSON.stringify, it doesn't fail gracefully, it results in a stack overflow. Under certain circumstances, I believe the data object had cycles to begin with (e.g. a Node object)

It sounds like 'deep' cloning isn't necessary. Perhaps we only have to do a shallow copy of some object (data.properties?) dojo.clone is both dangerous and expensive.