Skip to content

Make better use of ES6 #2

Description

@stevehoover

The JS syntax I was using is a bit obsolete. Some things that could be cleaned up:

  • Remove all ;.
  • No need for the function keyword. E.g. initEach: function () { becomes initEach() {.
  • For object properties assigned to variables of the same name, a shorthand is permitted, so, e.g. return {objects: {rect: rect, shadow: shadow}}; becomes return {objects: {rect, shadow}}

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