Skip to content

Commit e269865

Browse files
authored
UIComponent: Fix typo in ASSERT_UPDATE_FUNC_INVARIANTS
GitHub: #159
1 parent fcc27e2 commit e269865

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/gg/essential/elementa/UIComponent.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,7 @@ abstract class UIComponent : Observable(), ReferenceHolder {
12731273
}
12741274

12751275
internal fun assertUpdateFuncInvariants() {
1276-
if (!ASSERT_UPDATE_FUNC_INVARINTS) return
1276+
if (!ASSERT_UPDATE_FUNC_INVARIANTS) return
12771277

12781278
val window = cachedWindow ?: return
12791279
val allUpdateFuncs = window.allUpdateFuncs
@@ -1524,7 +1524,7 @@ abstract class UIComponent : Observable(), ReferenceHolder {
15241524
// Default value for componentName used as marker for lazy init.
15251525
private val defaultComponentName = String()
15261526

1527-
private val ASSERT_UPDATE_FUNC_INVARINTS = System.getProperty("elementa.debug.assertUpdateFuncInvariants").toBoolean()
1527+
private val ASSERT_UPDATE_FUNC_INVARIANTS = System.getProperty("elementa.debug.assertUpdateFuncInvariants").toBoolean()
15281528

15291529
val DEBUG_OUTLINE_WIDTH = System.getProperty("elementa.debug.width")?.toDoubleOrNull() ?: 2.0
15301530

0 commit comments

Comments
 (0)