• Long time @nmedia crew! It’s been a while.

    I was working on a separate script getting it modernized for jQuery 3.6 and noticed that there are a few scripts in PPOM that throw jQuery migrate warnings for deprecated code. I’m sure you guys are all on top of this but just thought I would mention the files and line numbers because two of them are my fault from the code I suggested for limiting input on number fields.

    change .bind to .on in the following:
    woocommerce-product-addons/js/ppom.inputs.js line 99
    woocommerce-product-addons/js/ppom.inputs.js line 110
    woocommerce-product-addons/js/ppom-conditions-v2.js line 76
    woocommerce-product-addons/js/ppom-conditions-v2.js line 86
    woocommerce-product-addons/js/ppom-conditions-v2.js line 177
    woocommerce-product-addons/js/price/ppom-price.js line 66

    That’s all I’ve noticed so far in the primary FREE plugin for deprecated code.
    I’m using version 24.3 in my development environment.

    Although jQuery migrate helps to prevent deprecated features from failing to function it’s always a good idea to update your code.

    PPOM PRO has a few I’m sure. At least one I noticed – .submit(function(){}) is deprecated. Use .on("submit",function(){}) instead in ppom-admin.js line 89 in PPOM PRO version 24.0.

    The ppom-addon-image-dropdown also has several deprecated elements to include .bind, .click, .parseJSON and .trim.

    Have fun modernizing!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Deprecated jQuery functions’ is closed to new replies.