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

Some goog.dom removal #1991

Merged
merged 2 commits into from
Aug 1, 2018
Merged

Some goog.dom removal #1991

merged 2 commits into from
Aug 1, 2018

Conversation

NeilFraser
Copy link
Contributor

Another small step for deleting Closure.

@@ -54,7 +53,7 @@ Blockly.inject = function(container, opt_options) {
document.querySelector(container);
}
// Verify that the container is in document.
if (!goog.dom.contains(document, container)) {
if (!Blockly.utils.containsNode(document, container)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

container is an unfortunate variable name for the second parameter, given the container actually tested is document.

@NeilFraser NeilFraser merged commit 6ce3194 into develop Aug 1, 2018
@NeilFraser NeilFraser deleted the Fraser branch August 1, 2018 22:47
NeilFraser added a commit that referenced this pull request Apr 16, 2023
The 'compareDocumentPosition' call was inherited from Closure Library, in order to work with IE 8 and earlier.  Use the more modern 'contains' call instead.

This change was originally added here:
#1991

Remove the DOCUMENT_POSITION_CONTAINED_BY constant which is not a NodeType and should never have been part of that enum.

This change was originally added here:
#2736
NeilFraser added a commit that referenced this pull request Apr 17, 2023
The 'compareDocumentPosition' call was inherited from Closure Library, in order to work with IE 8 and earlier.  Use the more modern 'contains' call instead.

This change was originally added here:
#1991

Remove the DOCUMENT_POSITION_CONTAINED_BY constant which is not a NodeType and should never have been part of that enum.

This change was originally added here:
#2736
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants