Skip to content

add 'use strict' in documentation for ES6 classes #682

@gh-amistry

Description

@gh-amistry

Examples in the "Events" section of the documentation relating to newly introduced ES6 functionality, like classes, don't work unless strict mode is specified, but 'use strict'doesn't appear in the example.

My suggestion is to include 'use strict' in these examples so that the code can simply be copied and pasted as-is and run as working examples.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions