JS Error in Internet Explorer 11 SCRIPT1006: ‘)’ expected
-
Hi,
your plugin does not seem to work in Internet Explorer 11 (IE11).
This error breaks the code:
SCRIPT1006: ‘)’ expected frontend.js (126,36)This is the code (first line throws the error):
function wooco_init($wrap, context = null) { var wrap_id = $wrap.attr('data-id'); var container = wooco_container(wrap_id); var $container = $wrap.closest(container); wooco_check_ready($container); wooco_calc_price($container); wooco_save_ids($container); if (context === null || context === 'on_select' || context === wooco_vars.show_alert) { wooco_show_alert($container); } }I fixed the problem by changing the code to this:
function wooco_init($wrap) { var wrap_id = $wrap.attr('data-id'); var container = wooco_container(wrap_id); var $container = $wrap.closest(container); wooco_check_ready($container); wooco_calc_price($container); wooco_save_ids($container); }Are you aware of this error?
Do you have a better solution?Thanks for your time. 🙂
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘JS Error in Internet Explorer 11 SCRIPT1006: ‘)’ expected’ is closed to new replies.