Merge branch 'tutorial' of ssh://bitbucket.org/yackob03/quay into tutorial

This commit is contained in:
jakedt 2014-02-13 17:27:54 -05:00
commit 39b5d325c7

View file

@ -42,11 +42,13 @@
if (settings.animate) {
currentOverlay.animate({opacity: 0}, settings.speed, settings.easing, function () {
currentOverlay.remove();
currentOverlay = null;
if (currentOverlay != null) {
currentOverlay.remove();
currentOverlay = null;
// Trigger the onHide callback
settings.onHide.call(this);
// Trigger the onHide callback
settings.onHide.call(this);
}
});
} else {
currentOverlay.remove();