It seems like the .data() on child elements is always cloned, irrespective of the setting of the deepClone and dataClone options. This causes obvious issues with jquery plugins initialised on elements inside the cloned group.
It looks like this is because the options are passed to jquery.clone() as a hash - but that method expects two booleans and treats the hash as equivalent to true.
It seems like the
.data()
on child elements is always cloned, irrespective of the setting of thedeepClone
anddataClone
options. This causes obvious issues with jquery plugins initialised on elements inside the cloned group.It looks like this is because the options are passed to
jquery.clone()
as a hash - but that method expects two booleans and treats the hash as equivalent totrue
.I will submit a fix and test in a PR just now.