Skip to content

Score update methods should be object properties #2

@ethanroday

Description

@ethanroday

Update methods should be eliminated and replaced with Object.defineProperty() for the properties involved. For example,

Renderer.Chord.prototype.update = function(duration,numDots,articulation) {
    this.updateDuration(duration);
    this.updateNumDots(numDots);
    this.updateArticulation(articulation);
};

and the methods that it calls should in turn be refactored into three Object.defineProperty() calls: one for duration, one for numDots, and one for articulation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions