mirror of
https://github.com/penpot/penpot.git
synced 2025-07-27 12:17:32 +02:00
⚡ Improve performance of z-index update
This commit is contained in:
parent
285a0d5f47
commit
32b623e82b
4 changed files with 94 additions and 54 deletions
|
@ -111,7 +111,7 @@ goog.scope(function() {
|
|||
// Tree implementation functions
|
||||
|
||||
function isRed(branch) {
|
||||
return branch !== null && branch.color === Color.RED;
|
||||
return branch && branch.color === Color.RED;
|
||||
}
|
||||
|
||||
// Insert recursively in the tree
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue