Fix NPE in spotlight
This commit is contained in:
parent
ad76141007
commit
f4c217a47b
1 changed files with 6 additions and 4 deletions
|
@ -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();
|
||||
|
|
Reference in a new issue