mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
cleanup: Don't shadow variables
Having variables that share the same name in overlapping scopes is confusing and error-prone, and is best avoided. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/805
This commit is contained in:
parent
2e4e2500dd
commit
682bd7e97c
34 changed files with 85 additions and 86 deletions
|
|
@ -405,7 +405,7 @@ function ensureActorVisibleInScrollView(scrollView, actor) {
|
|||
if (!parent)
|
||||
throw new Error("actor not in scroll view");
|
||||
|
||||
let box = parent.get_allocation_box();
|
||||
box = parent.get_allocation_box();
|
||||
y1 += box.y1;
|
||||
y2 += box.y1;
|
||||
parent = parent.get_parent();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue