After update to jQuery 1.8.0, jScrollPane gives me this error:
Uncaught Error: Syntax error, unrecognized expression: [type=text/javascript],not([type])
in this line:
$("script",elem).filter('[type=text/javascript],not([type])').remove();
Can anyone help?
Thanks
not
is a pseudo selector and should be preceded by a :
used as :not()
selector[attr="value"]
- [type="text/javascript"]
.So it should be -
.filter('[type="text/javascript"],:not([type])')
Here is a patch for jScrollPane. Works fine with jquery 1.8.x https://github.com/jarednorman/jScrollPane/commit/2ef4821afa1dd62db056e3dea737e6f84b17fb13
This is a final minified version: https://raw.github.com/jarednorman/jScrollPane/2ef4821afa1dd62db056e3dea737e6f84b17fb13/script/jquery.jscrollpane.min.js
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With