changing the $ to jQuery in front.js
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 5 Feb 2019 15:09:43 +0000 (10:09 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 5 Feb 2019 15:09:43 +0000 (10:09 -0500)
making all of the jQuery calls uniform by changing the $ calls to jQuery so it doesn't break on sites that don't have no conflict scripts or don't use $ as a dependency or augmentation

js/front.js

index db65778..fd2defb 100644 (file)
@@ -18,8 +18,8 @@ var EventFront = {
                 var imgData = $(this).data('src');
                 var imgSrc  = $(this).attr('src');
                 if ( imgData && imgSrc == undefined ) {
-                    $(this).prop('src', imgData);
-                    $(this).removeData('src');
+                    jQuery(this).prop('src', imgData);
+                    jQuery(this).removeData('src');
                 }
             });
         });