I am working with a library which implement a class Graph
that have a method Graph.registerNode()
The methode has the following signature.
Graph.registerNode('node-name', {
object: {
options: {
key: "value"
},
updateOption: () => {
this.options = { key: "other value" }
}
})
Is it possible to update the options
key from updateOptions
without using the this
keyword?