-
Notifications
You must be signed in to change notification settings - Fork 2
Method prefix #5
Description
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.