• Resolved maxivillus

    (@maxivillus)


    I would like to suggest a code improvement in the file assets/js/editor-modules.js in the function isGlobalControl: function isGlobalControl(control, controls) on line 1128.

    If you add a variable check if (!globalControl) return false; after the line var 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
    • This topic was modified 3 years, 9 months ago by maxivillus.
    • This topic was modified 3 years, 9 months ago by maxivillus.
    • This topic was modified 3 years, 9 months ago by maxivillus.
    • This topic was modified 3 years, 9 months ago by Jan Dembowski.
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.