code cleanup.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
fn init() {
|
||||
// Can detect system-provided default states!
|
||||
// Add 'bool_state' as new state variable if one does not exist
|
||||
if !("bool_state" in this) {
|
||||
if "bool_state" !in this {
|
||||
this.bool_state = false;
|
||||
}
|
||||
// Add 'value' as new state variable (overwrites any existing)
|
||||
|
Reference in New Issue
Block a user