CSS-Tricks / AnythingSlider

A jQuery Slider plugin for anything.
http://css-tricks.github.io/AnythingSlider/
GNU Lesser General Public License v3.0
1.15k stars 380 forks source link

replaced the deprecated andSelf() with addBack() in order to increase compatibility with jQuery 1.8+ #508

Closed jhadenfeldt closed 11 years ago

jhadenfeldt commented 11 years ago

andSelf() is deprecated since jQuery 1.8

Mottie commented 11 years ago

Hi greyscales!

Thanks for contributing! I think we might need to add a check for addBack() and use fallback to andSelf() if it doesn't exist to keep this compatible with older versions of jQuery. I'll merge this and make that change soon :)

multiformeingegno commented 11 years ago

I was posting the exact same thing. I upgraded to jQuery 2.0.0 and did a quick test with jQuery Migrate on AnythingSlider. I got these warnings :) "jQuery.fn.andSelf() replaced by jQuery.fn.addBack()" "jQuery.attrFn is deprecated" "jQuery.browser is deprecated"