@sdetweil
Yes, you’re right. it was just an example. Anyway, it can be done like this;
parseContent: function(text) {
this.lastPatched = JSON.parse(text)
this.updateDom()
},
getDom: function() {
var dom = document.createElement("div")
dom.id = "TEST"
if (this.lastPatched) {
... // draw patched data...
}
return dom
}