-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
[BUGFIX beta] Cleanup view teardown. #13775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -193,7 +193,7 @@ const Component = View.extend(TargetActionSupport, ActionSupport, { | |
let attr = this._renderNode.childNodes.filter(node => node.attrName === name)[0]; | ||
if (!attr) { return null; } | ||
return attr.getContent(); | ||
} | ||
}, | ||
|
||
/** | ||
Returns true when the component was invoked with a block template. | ||
|
@@ -359,6 +359,7 @@ const Component = View.extend(TargetActionSupport, ActionSupport, { | |
@public | ||
@since 1.13.0 | ||
*/ | ||
didReceiveAttrs() {}, | ||
|
||
/** | ||
Called when the attributes passed into the component have been updated. | ||
|
@@ -379,6 +380,7 @@ const Component = View.extend(TargetActionSupport, ActionSupport, { | |
@public | ||
@since 1.13.0 | ||
*/ | ||
didRender() {}, | ||
|
||
/** | ||
Called after a component has been rendered, both on initial render and | ||
|
@@ -397,6 +399,7 @@ const Component = View.extend(TargetActionSupport, ActionSupport, { | |
@public | ||
@since 1.13.0 | ||
*/ | ||
willRender() {}, | ||
|
||
/** | ||
Called before a component has been rendered, both on initial render and | ||
|
@@ -415,6 +418,7 @@ const Component = View.extend(TargetActionSupport, ActionSupport, { | |
@public | ||
@since 1.13.0 | ||
*/ | ||
didUpdateAttrs() {}, | ||
|
||
/** | ||
Called when the attributes passed into the component have been changed. | ||
|
@@ -433,6 +437,7 @@ const Component = View.extend(TargetActionSupport, ActionSupport, { | |
@public | ||
@since 1.13.0 | ||
*/ | ||
willUpdate() {}, | ||
|
||
/** | ||
Called when the component is about to update and rerender itself. | ||
|
@@ -447,10 +452,11 @@ const Component = View.extend(TargetActionSupport, ActionSupport, { | |
Called when the component has updated and rerendered itself. | ||
Called only during a rerender, not during an initial render. | ||
|
||
@event didUpdate | ||
@method didUpdate | ||
@public | ||
@since 1.13.0 | ||
*/ | ||
didUpdate() {} | ||
|
||
/** | ||
Called when the component has updated and rerendered itself. | ||
|
@@ -465,7 +471,8 @@ const Component = View.extend(TargetActionSupport, ActionSupport, { | |
Component[NAME_KEY] = 'Ember.Component'; | ||
|
||
Component.reopenClass({ | ||
isComponentFactory: true | ||
isComponentFactory: true, | ||
positionalParams: [] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. tell me more There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so I mean to move the doc here too, but the issue is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is the same with all the hooks There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah, and this is already |
||
}); | ||
|
||
export default Component; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we guard against both
isDestroying
andisDestroyed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't unset isDestroying when we set isDestroyed but I can add that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, then its not needed. Seems good