Skip to content

New method declaration convention #70

Open

Description

@devinrhode2

I've come up with a really good convention for naming methods:

person.getData = function person_getData() {
};

We prepend with person_ so that the function name is unique from the identifier, avoiding errors in IE.

It also tells us EXACTLY what function we're dealing with in a stack trace.

@shichuan probably best to let you update the codebase with this new convention; if you approve. For a javascript error dashboard this will prove rather useful

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