Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 91d5640

Browse files
committed
docs($compile): event handlers are not copied from the replaced node
1 parent fc73256 commit 91d5640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/compile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2038,7 +2038,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
20382038
jqLite(newNode).data(jqLite(firstElementToRemove).data());
20392039

20402040
// Remove data of the replaced element. We cannot just call .remove()
2041-
// on the element it since that would deallocate scope and event handlers that are still needed
2041+
// on the element it since that would deallocate scope that is needed
20422042
// for the new node. Instead, remove the data "manually".
20432043
if (!jQuery) {
20442044
delete jqLite.cache[firstElementToRemove[jqLite.expando]];

0 commit comments

Comments
 (0)