Skip to content

Commit 7fb1d75

Browse files
author
Zalkovalsky
committed
Added 'detachedCallback' when registering elements for zone.js compatibility
1 parent 333a0b0 commit 7fb1d75

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/core/a-register-element.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ function wrapANodeMethods (obj) {
8181
var ANodeMethods = [
8282
'attachedCallback',
8383
'attributeChangedCallback',
84-
'createdCallback'
84+
'createdCallback',
85+
'detachedCallback'
8586
];
8687
wrapMethods(newObj, ANodeMethods, obj, ANode.prototype);
8788
copyProperties(obj, newObj);
@@ -100,7 +101,8 @@ function wrapAEntityMethods (obj) {
100101
var ANodeMethods = [
101102
'attachedCallback',
102103
'attributeChangedCallback',
103-
'createdCallback'
104+
'createdCallback',
105+
'detachedCallback'
104106
];
105107
var AEntityMethods = [
106108
'attachedCallback',

0 commit comments

Comments
 (0)