Yapapaya / jquery-cloneya

A jquery plugin to clone DOM elements
MIT License
76 stars 28 forks source link

Handle jQuery event namespaces correctly #62 #63

Closed paulschwarz closed 7 years ago

paulschwarz commented 7 years ago

See https://github.com/Yapapaya/jquery-cloneya/issues/62

Note that a test which simply triggers clone would be enough to break it because it would result in _cloneAndAppend(toClone) being called where toClone is null.

However, to illustrate the caveats (bug or feature?), I have added a couple of sample test cases which show that the user may still handle the "third-party" clone event at their discretion, reminding them to check event.namespace if necessary.

paulschwarz commented 7 years ago

Would you mind bumping the tag so I can make use of the merged pull request?