danneu
01/09/2017, 5:05 PMactivate()
method after defining its properties which evals javascript code that iterates through the properties to run mobx.extendObservable(this, { key: initValue })
like mobx.extendObservable(this, { counter: 0 })
.
activate() impl: https://github.com/danneu/kobx/blob/master/src/com/danneu/kobx/mobx/hacks.kt
class Store : Observable {
var counter = 0
var message = "Hello world"
init { activate() }
}
Is there a way I can factor out that init { activate() }
line?