cleanup: Use arrow functions for tweener callbacks
While it is legal to use method syntax for the function properties here, arrow notation is less unexpected and allows us to drop the separate scope properties. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/608
This commit is contained in:

committed by
Georges Basile Stavracas Neto

parent
6ed5bc2f6c
commit
8fcd6c7153
@ -469,8 +469,7 @@ var Message = class Message {
|
||||
{ scale_y: 0,
|
||||
time: MessageTray.ANIMATION_TIME,
|
||||
transition: 'easeOutQuad',
|
||||
onCompleteScope: this,
|
||||
onComplete() {
|
||||
onComplete: () => {
|
||||
this._actionBin.hide();
|
||||
this.expanded = false;
|
||||
} });
|
||||
|
Reference in New Issue
Block a user