|
|
@ -328,6 +328,20 @@ let extensionHideNotification = function(animate) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (animate) { |
|
|
|
if (animate) { |
|
|
|
|
|
|
|
if (versionAtLeast('3.16', Config.PACKAGE_VERSION)) { |
|
|
|
|
|
|
|
// JRL changes begin
|
|
|
|
|
|
|
|
this._tween(theNotification, '_notificationState', State.HIDDEN, |
|
|
|
|
|
|
|
{ y: yPos, |
|
|
|
|
|
|
|
// JRL changes end
|
|
|
|
|
|
|
|
_opacity: 0, |
|
|
|
|
|
|
|
time: ANIMATION_TIME, |
|
|
|
|
|
|
|
transition: 'easeOutBack', |
|
|
|
|
|
|
|
onUpdate: this._clampOpacity, |
|
|
|
|
|
|
|
onUpdateScope: this, |
|
|
|
|
|
|
|
onComplete: this._hideNotificationCompleted, |
|
|
|
|
|
|
|
onCompleteScope: this |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} else { |
|
|
|
// JRL changes begin
|
|
|
|
// JRL changes begin
|
|
|
|
this._tween(theNotification, '_notificationState', State.HIDDEN, |
|
|
|
this._tween(theNotification, '_notificationState', State.HIDDEN, |
|
|
|
{ y: yPos, |
|
|
|
{ y: yPos, |
|
|
@ -338,6 +352,7 @@ let extensionHideNotification = function(animate) { |
|
|
|
onComplete: this._hideNotificationCompleted, |
|
|
|
onComplete: this._hideNotificationCompleted, |
|
|
|
onCompleteScope: this |
|
|
|
onCompleteScope: this |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// JRL changes begin
|
|
|
|
// JRL changes begin
|
|
|
|
Tweener.removeTweens(theNotification); |
|
|
|
Tweener.removeTweens(theNotification); |
|
|
|