Lite Content Slider releases event.layerX and event.layerY is deprecated

I seem to have a problem with the JQuery Lite Content Slider. I get a warning when I try to move to the next slide. I'm not entirely sure if this is the problem because this is only a warning, but I don't see any other problems with the script.

Skincarewithaconscience.com website

Any help or suggestions would be greatly appreciated.

UPDATE

I am using jQuery 1.7.1 and the noConflict mode is used in the Lite content slider. Sorry, I had to mention all of these points.

+3


source to share


3 answers


Usage jQuery.noConflict();

removes the association of jQuery with a variable $

, which is often required when using more than one version of jQuery on the same page, or when using jQuery at the same time using a different structure that also uses $

as a reference to its structure.

Since your site is using jQuery.noConflict();

, you need to either reference jQuery

by name instead of using a $

shortcut, or wrap your functions in a closure that renames jQuery

to $

(in the same way as livequery or prettyPhoto files).



To create a closure, you must use:

(function($) {
  // your code using $ goes here
  $(document).ready(function() { /* etc */ });
}(jQuery));

      

+6


source


This issue has been fixed in jQuery 1.7.

WebKit issues with event.layerX and event.layerY



The site is currently using version 1.6. Can you upgrade?

+5


source


I found that $ is not available to the browser ..... but in settings.js $ is used everywhere.

Yes ... since you mentioned you are using it in noConflict mode

Wrap it in jQuery namespace like jquery.prettyPhoto.js

This should fix this thing .....

+1


source







All Articles