Skip to content

Commit bde2ad8

Browse files
committed
Merge pull request rochal#144 from louy/patch-1
Calling "destroy" shouldn't create an instance
2 parents 8b79db3 + 9bb3a79 commit bde2ad8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

jquery.slimscroll.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,13 @@
142142

143143
return;
144144
}
145+
else if ($.isPlainObject(options))
146+
{
147+
if ('destroy' in options)
148+
{
149+
return;
150+
}
151+
}
145152

146153
// optionally set height to the parent's height
147154
o.height = (options.height == 'auto') ? me.parent().height() : options.height;

0 commit comments

Comments
 (0)