Code improvement / Uncaught TypeError: globalControl is undefined
-
I would like to suggest a code improvement in the file
assets/js/editor-modules.jsin the functionisGlobalControl: function isGlobalControl(control, controls)on line 1128.If you add a variable check
if (!globalControl) return false;after the linevar globalControl = controls[controlGlobalKey];then errors can be avoided:Uncaught TypeError: globalControl is undefined isGlobalControl https://site.com/wp-content/plugins/elementor/assets/js/editor-modules.js?ver=3.7.2:1145 getStyleControls https://site.com/wp-content/plugins/elementor/assets/js/editor-modules.js?ver=3.7.2:1122 each jQuery getStyleControls https://site.com/wp-content/plugins/elementor/assets/js/editor-modules.js?ver=3.7.2:1107 getStyleControls https://site.com/wp-content/plugins/elementor/assets/js/editor-modules.js?ver=3.7.2:1117 N Underscore e Backbone editor-modules.js:1145:9
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Code improvement / Uncaught TypeError: globalControl is undefined’ is closed to new replies.