Skip to content

Method prefix #5

Description

@mbrowne

I added a method prefix, to make it clearer which methods are non-native and to avoid clashing with any future native methods:
mbrowne@1a8d6bf

If you would be interested in incorporating this change, let me know and I'll update the readme and submit a pull request.

BTW I also made the non-native methods non-enumerable...maybe that's not needed, but I was trying to address the concern mentioned here ("This could cause unexpected issues with code iterating over native prototypes")...of course code that iterates over native prototypes should probably account for the possibility that they were extended anyway, so maybe it would actually be better with them being enumerable. Also I assumed ES5 is available; not sure if you preferred to keep it ES3-compatible.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions