app.Layer.prototype.setProperty = function (property, value) {
};
app.Layer.prototype.setName = function (name, docId) {
this.setProperty('layerSectionExpanded', false);
};
layer.setName('name');
Ends up with
Uncaught TypeError: this.setProperty is not a function
Any insight if it’s even possible?