cleanup: Use type-safe comparisons
We have been using type-safe comparisons in new code for quite a while now, however old code has only been adapted slowly. Change all the remaining bits to get rid of another legacy style difference. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2866>
This commit is contained in:

committed by
Marge Bot

parent
9a3913d4a0
commit
a42f7c2384
@ -33,7 +33,7 @@ const PieTimer = GObject.registerClass({
|
||||
}
|
||||
|
||||
set angle(angle) {
|
||||
if (this._angle == angle)
|
||||
if (this._angle === angle)
|
||||
return;
|
||||
|
||||
this._angle = angle;
|
||||
@ -121,7 +121,7 @@ export class PointerA11yTimeout {
|
||||
|
||||
this._pieTimer.start(x, y, timeout);
|
||||
|
||||
if (type == Clutter.PointerA11yTimeoutType.GESTURE)
|
||||
if (type === Clutter.PointerA11yTimeoutType.GESTURE)
|
||||
global.display.set_cursor(Meta.Cursor.CROSSHAIR);
|
||||
});
|
||||
|
||||
@ -129,7 +129,7 @@ export class PointerA11yTimeout {
|
||||
if (!clicked)
|
||||
this._pieTimer.destroy();
|
||||
|
||||
if (type == Clutter.PointerA11yTimeoutType.GESTURE)
|
||||
if (type === Clutter.PointerA11yTimeoutType.GESTURE)
|
||||
global.display.set_cursor(Meta.Cursor.DEFAULT);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user