Skip to content

Commit 918a5f5

Browse files
authored
Merge pull request #33384 from anzin/improvement/m2-33207-remove-mutation-observer
33207: Removed lib/web/MutationObserver.js and replaced usages with native JS MutationObserver
2 parents a1a8ac5 + fb40b62 commit 918a5f5

File tree

5 files changed

+0
-584
lines changed

5 files changed

+0
-584
lines changed

app/code/Magento/Theme/view/base/requirejs-config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ var config = {
2222
'mage/new-gallery': ['jquery'],
2323
'mage/webapi': ['jquery'],
2424
'jquery/ui': ['jquery'],
25-
'MutationObserver': ['es6-collections'],
2625
'matchMedia': {
2726
'exports': 'mediaCheck'
2827
},

app/code/Magento/Ui/view/base/requirejs-config.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@ var config = {
3636
* Adds polyfills only for browser contexts which prevents bundlers from including them.
3737
*/
3838
if (typeof window !== 'undefined' && window.document) {
39-
/**
40-
* Polyfill MutationObserver only for the browsers that do not support it.
41-
*/
42-
if (typeof MutationObserver === 'undefined') {
43-
config.deps.push('MutationObserver');
44-
}
45-
4639
/**
4740
* Polyfill FormData object for old browsers that don't have full support for it.
4841
*/

dev/tests/integration/testsuite/Magento/Framework/Composer/_files/testFromCreateProject/composer.lock

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/tests/integration/testsuite/Magento/Framework/Composer/_files/testSkeleton/composer.lock

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)