You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.
When I define('SCRIPT_DEBUG', true); it works. Also Firefox Developer Toolbar confirms there are no listeners attached without SCRIPT_DEBUG. Unfortunately debugging in the minified file (without source maps) is hard so I have no clue where the issue lies for now.
The text was updated successfully, but these errors were encountered:
Okay there seems to be something wrong with the compiled version of functions.js
I think the issue is that building the name of the config variable from the module name doesn't work as it may be changed during minification.
kraftner
changed the title
Language Menu Item (NavMenus) not working without SCRIPT_DEBUG
Module Configuration not working without SCRIPT_DEBUG
May 9, 2016
Okay the issue seems to be bigger than I thought. This doesn't only affect the NavMenu module but any module that has configuration settings.
Here is another example: When changing a relation and saving the post without first saving the relation change there is an error (Uncaught TypeError: Cannot read property 'unsavedRelationships' of undefined) and the modal warning about lost data doesn't show up.
Okay I think I've got it. function.name is changed on minification. This approach feels fragile in any case. This doesn't behave as expected when minified.
Version Information
Steps to Reproduce
What I Expected
a language menu item being added.
What Happened Instead
Nothing
When I
define('SCRIPT_DEBUG', true);
it works. Also Firefox Developer Toolbar confirms there are no listeners attached withoutSCRIPT_DEBUG
. Unfortunately debugging in the minified file (without source maps) is hard so I have no clue where the issue lies for now.The text was updated successfully, but these errors were encountered: