diff --git a/jquery.slimscroll.js b/jquery.slimscroll.js index 8f813ee..a4d195c 100644 --- a/jquery.slimscroll.js +++ b/jquery.slimscroll.js @@ -142,6 +142,13 @@ return; } + else if ($.isPlainObject(options)) + { + if ('destroy' in options) + { + return; + } + } // optionally set height to the parent's height o.height = (options.height == 'auto') ? me.parent().height() : options.height;