We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 158b8c6 commit 995abf2Copy full SHA for 995abf2
src/ng/compile.js
@@ -2642,7 +2642,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
2642
// Copy over user data (that includes Angular's $scope etc.). Don't copy private
2643
// data here because there's no public interface in jQuery to do that and copying over
2644
// event listeners (which is the main use of private data) wouldn't work anyway.
2645
- jqLite(newNode).data(jqLite(firstElementToRemove).data());
+ jqLite.data(newNode, jqLite.data(firstElementToRemove));
2646
2647
// Remove data of the replaced element. We cannot just call .remove()
2648
// on the element it since that would deallocate scope that is needed
0 commit comments