angular/angular.js — pull request #5141 by leon (2013-11-26 08:08:11+00:00)
Title: feat(jqLite): add withDataAndEvents to clone method

While writing a custom directive I needed to clone an element and retain the events. The jQuery version of clone takes a second parameter that allows copying the events and data, so I thought I'd implement that.

**Found jqCache references that were not deallocated!**
The only thing left is cloning the data.
The problem I'm facing is that karma is telling my that I've got a leak.

Any suggestions why?