Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Adding Blockly.utils.removeNode(..) #2041

Merged
merged 1 commit into from
Sep 4, 2018

Conversation

AnmAtAnm
Copy link
Contributor

@AnmAtAnm AnmAtAnm commented Sep 4, 2018

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide

The details

Resolves

#2040

Proposed Changes

Duplicate older removeNode behavior by copying goog.dom.removeNode(..) into the Blockly codebase. Replaced all original locations of goog.dom.removeNode(..), not just the case for the existing error.

Reason for Changes

The null check appears necessary, though the whole error case is not fully understood.

Test Coverage

I opened the BlockFactory locally, which crashed before making these changes.

Tested on:

  • Desktop Chrome

...with Blockly.utils.removeNode(..), which includes
a null/undefined check on parentNode before continuing.
@AnmAtAnm AnmAtAnm changed the base branch from master to develop September 4, 2018 20:59
@AnmAtAnm AnmAtAnm merged commit ac02660 into google:develop Sep 4, 2018
@AnmAtAnm AnmAtAnm deleted the removeNode-util branch September 19, 2018 20:00
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants