Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue Automattic#8546 - instead of removing window.require and wi…
…ndow.define from global scope and thus breaking mailchimp script, set window.define.amd to fool just real amd modules. Mailchimp script seem to expect usable definitions of require and define, once we remove them it breaks. Since the purpose of this commit is to fix scripts like jquery-ui that will resort to define() if define.amd is defined - it is enough to unset define.amd. This is a very ugly solution, but it works.
- Loading branch information