Calling custom prototype function from another one

app.Layer.prototype.setProperty = function (property, value) {

app.Layer.prototype.setName = function (name, docId) {
    this.setProperty('layerSectionExpanded', false);


Ends up with

Uncaught TypeError: this.setProperty is not a function

Any insight if it’s even possible?

I think it’s accessible via this.__proto__.setProperty

1 Like

Thanks for prompt response, but I reverted now a lot of stuff and trying to do again from the point where everything was working (more or less). Maybe will test this some time later