Skip to content

Commit

Permalink
#0 bugfix calling onExpanded with no fx set
Browse files Browse the repository at this point in the history
  • Loading branch information
zipper committed Feb 5, 2016
1 parent e60dc13 commit e08f260
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions jquery.collapsable.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
else {
if(opts.fx == 'toggle') {
$box.show();
}

if(typeof opts.onExpanded == 'function') {
t = setTimeout(function () {
opts.onExpanded.call($parent);
}, opts.collapseDelay);}
if(typeof opts.onExpanded == 'function') {
t = setTimeout(function () {
opts.onExpanded.call($parent);
}, opts.collapseDelay);
}
}
}
Expand All @@ -33,8 +34,9 @@
});
}
else {
if(opts.fx == 'toggle')
if(opts.fx == 'toggle') {
$box.hide();
}

if(typeof opts.onCollapsed == 'function') {
t = setTimeout(function () {
Expand Down

0 comments on commit e08f260

Please sign in to comment.