emberjs/ember.js — pull request #1349 by jdsmith2816 (2012-09-05 23:16:27+00:00)
Title: Allow extension of chosen prototypes instead of the current all or none.

One of my current projects involves embedding an ember widget into
a rather large pre-existing application Extending the Array prototype
causes a slew of issues for both first party and third party code
in use on the relevant pages.

This change is backwards compatible and enables, via a new ENV hash,
the ability to choose exactly which prototypes to extend:

window.Env = {
EXTEND_PROTOTYPES: true,
PROTOTYPE_EXTENSIONS: {
// all: true,
Function: true,
String: true,
Array: true
}
};