Improve performance of z-index update

This commit is contained in:
alonso.torres 2021-05-03 14:20:19 +02:00 committed by Andrey Antukh
parent 285a0d5f47
commit 32b623e82b
4 changed files with 94 additions and 54 deletions

View file

@ -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