I'm trying to use quicksand the jquery plugin and I'm getting this error with jquery 1.9.1.
"Uncaught TypeError: Cannot read property 'msie' of undefined"
I know that msie is the flag on the jQuery.browser property jQuery.browser was deprecated since version 1.3 and was removed in jQuery 1.9.0
Which is why this is causing the error. But is there a fix so that quicksand will work again?
Any help or advice would be great!
Thanks in advance!
Note for the Intrepid Developer(s)
A (few) obligatory words on
jQuery.browser
andjQuery.support
:Moral of the story: Update your projects, remove reliance on
jQuery.browser
, and use feature detection where necessary. To test and find areas where your projects over-rely on deprecated or removed methods or properties, seejQuery-migrate
.Also see Modernizr.js and YepNope.js for alternatives to jQUery feature detection.
A jQuery shim file to replace
$.browser
, courtesy the fancyBox-rails project:https://github.com/hecticjeff/fancybox-rails/blob/master/vendor/assets/javascripts/jquery.browser.js
You are using
quicksand
plugin that containcode
(i.e $.browser)
that was removed fromjQuery
starting with version1.9
.