signalTracker: Use a const variable to hold the tracked object value
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2366>
This commit is contained in:
parent
371da8d394
commit
9abf3508fd
@ -211,10 +211,7 @@ function connectObject(thisObj, ...args) {
|
||||
args = rest;
|
||||
}
|
||||
|
||||
let [obj] = args;
|
||||
if (!obj)
|
||||
obj = globalThis;
|
||||
|
||||
const obj = args.at(0) ?? globalThis;
|
||||
const tracker = SignalManager.getDefault().getSignalTracker(thisObj);
|
||||
tracker.track(obj, ...signalIds);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user