• Resolved maderesponsively

    (@maderesponsively)


    I get the following error and the like button doesn’t load:

    Uncaught TypeError: $(…).live is not a function
    at updateLikes (nice-likes.js:24)
    at HTMLDocument.ready (nice-likes.js:221)
    at i (jquery-2.2.4.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-2.2.4.min.js:2)
    at Function.ready (jquery-2.2.4.min.js:2)
    at HTMLDocument.J (jquery-2.2.4.min.js:2)

    Shouldn’t this be .on() as .live() is depreciated?

    Regards,

Viewing 1 replies (of 1 total)
  • Hi,

    You’re right, live() is a deprecated function. The default behavior of WordPress, while loading jQuery, is to also load jQuery Migrate to make deprecated functions available. However, that doesn’t seem to be the case with your installation (maybe jQuery Migrate is being disabled by another plugin or the theme you’re using).

    To solve this problem, which could be affecting other users, we just pushed a fix with version 1.0.3 of the plugin, so now the like button should be working fine on your end. We recommend you to update to the latest version as soon as possible.

    Please let us know if this fixes your issue.

    Best,

    Andrés.

Viewing 1 replies (of 1 total)

The topic ‘.live not a function’ is closed to new replies.