Small error in JavaScript file
-
In scripts.js, there’s a little error that is triggered in certain use cases. Right at the start you find this:
'use strict'; if (typeof _wpcf7 == 'undefined' || _wpcf7 === null) { _wpcf7 = {}; }If
_wpcf7is indeed undefined, the strict mode will throw an error that_wpcf7is undefined when trying to declare it. Simple fix: usevar _wpcf7 = {};.I haven’t check for other strict mode compatibility errors but it might be worth to run this through JSLint.
Cheers!
The topic ‘Small error in JavaScript file’ is closed to new replies.