Skip to content

Chapter3 Builder.js tournament.events.push #1

Description

@imrek

Hello,

shouldn't the Tournament class actually have something like this.events = [];?
Because when you run code likes this:

var tournament = new Tournament();
tournament.events.push(new Event("Joust"));

the tournament object will not have an events property if you define the class like this:

var Tournament = (function () {
        function Tournament() {
        }
        return Tournament;
})();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions