plugin breaks when update to jQuery 2.1.4
-
Thanks for building a nice plugin!
Everything is good until we upgrade the jQuery. The plugin seems to break when using the newer jQuery.
Potential issue tracked was due to typeof return as “string” but is empty, causing jQuery to complain the toUppercase() cannot be applied to null.
Haven’t really studied through the whole function, but a quick test with following seem to fix the problem.
$.each( _aScrollbar[ 'inline_css' ], function( _iIndex, _aInlineCSS ) { - if ( 'undefined' === typeof _aInlineCSS[ 'property' ] ) { + if ( 'undefined' === typeof _aInlineCSS[ 'property' ] || ^M + '' === _aInlineCSS['property'] ^M + ) {
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘plugin breaks when update to jQuery 2.1.4’ is closed to new replies.