diff --git a/js/like_and_dislike.js b/js/like_and_dislike.js index ea5e992a0f4caa6b80d8b0cc5a4b4218926532dd..a79a3f3c0ffe75694b7522bb20a85dbc1ffbe338 100644 --- a/js/like_and_dislike.js +++ b/js/like_and_dislike.js @@ -8,7 +8,7 @@ Drupal.behaviors.likeAndDislike = { attach: function(context, settings) { - $('.vote-widget--like-and-dislike', context).once('like-and-dislike').each(function () { + $('.vote-widget--like-and-dislike').once('like-and-dislike').each(function () { var $widget = $(this); $widget.find('.vote-like a').click(function() { var entity_id, entity_type;