Needs work
Project:
ShareThis
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Nov 2022 at 11:34 UTC
Updated:
6 Dec 2022 at 10:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
saurabhpandit26 commentedComment #3
nikunjkotecha@Saurabh please raise MR so it is easy to review
+ stlib_picker.setupPicker(jQuery('#myPicker', context), drupalSettings.sharethis.service_string_markup, drupal_st.serviceCallback);
Here we can use "jQuery(this)" instead of jQuery('#myPicker', context) as it is already inside .once
Comment #4
nikunjkotechaComment #5
saurabhpandit26 commented@Nikunj unable to create an issue fork for this, so uploading a new patch again.
Comment #6
saurabhpandit26 commentedComment #7
saurabhpandit26 commentedWas getting undefined function error in patch #5
Comment #8
saurabhpandit26 commentedRefactored patch again to use jquery this object.
Comment #9
vivek panicker commentedComments regarding the patch #8
1/ There seems to be an extra space before
(function ($`.2/
jQuery('#myPicker', context)can bejQuery('#myPicker', context)Comment #10
nashkrammer commented1/
There seems to be an extra space before (function ($`.Fixed2/
jQuery('#myPicker', context) can be jQuery('#myPicker', context)any particular reason to have indent here.Comment #11
vivek panicker commentedSorry, my bad.
Copy + paste error.
What I meant was that can we use `$` instead of `jQuery` there?
jQuery('#myPicker', context)can be$('#myPicker', context)Comment #12
nashkrammer commentedFixed https://www.drupal.org/project/sharethis/issues/3319692#comment-14813634