Support » Plugin: Contact Form 7 » script error / amd ready

  • Resolved jnz31

    (@jnz31)



    hi.

    i load the scripts via requireJS and it needs some hack to get i running, so i wonder, if you could make your script AMD ready?!
    link

    and i found an error in your script (includes/js/scripts.js, line 6):

    if (typeof _wpcf7 == 'undefined' || _wpcf7 === null) {
    	_wpcf7 = {};
    }

    the VAR is missing (STRICT mode)..

    if (typeof _wpcf7 == 'undefined' || _wpcf7 === null) {
    	var _wpcf7 = {};
    }

    thank you!

    • This topic was modified 2 years, 1 month ago by  jnz31.
    • This topic was modified 2 years, 1 month ago by  jnz31.
Viewing 1 replies (of 1 total)
  • actually, i thought you would need a function export for AMD, but you don’t. works fine with shim now.
    only issue is the VAR thing then.. thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘script error / amd ready’ is closed to new replies.