Skip to content
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

fix(browser_adapter): fix clearNodes() in IE #3355

Closed

Conversation

pkozlowski-opensource
Copy link
Member

Fixes #3295

@@ -130,14 +130,14 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
}
clearNodes(el) {
while (el.firstChild) {
el.firstChild.remove();
el.removeChild(el.firstChild);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you write a comment that can explain the reason why the refactor is needed or simply a comment with a url to the issue

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gdi2290 this commit has a reference to the original issue, so hopfully it should be enough. And as soon as we plug other browsers on the CI it will be self-verifying.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're right I jumped to conclusion and we have github/git blame/CI for a reason. If someone were to optimize this they would first check git blame then the git commit history before proceeding and if that fails CI will prevail. With all that said, comments are important to show hot path, document unorthodox/failed optimizations, unimportant technical debt via TODO:, or code documentation

@marclaval
Copy link
Contributor

LGTM, this solves issue #3295 in IE11

@marclaval marclaval added pr_state: LGTM action: merge The PR is ready for merge by the caretaker labels Jul 30, 2015
@pkozlowski-opensource
Copy link
Member Author

Thnx @Mlaval for the review. I'm going to land it as soon as we get master back to green.

@tbosch
Copy link
Contributor

tbosch commented Jul 30, 2015

Please create a presubmit branch...

stevemao pushed a commit to stevemao/angular that referenced this pull request Aug 3, 2015
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alpha32: IE10/11 doesn't support "remove" in browser_adapter.ts
5 participants