emberjs/ember.js — Issue #576: Enable partial prototype extension
Author: eishay
Created: 2012-03-08 18:35:47+00:00
State: open

I can' t have ember.js extend Array.prototype but I would still want to have the rest (Function & String).
Can you have the prototype extension defined in a function that I can directly call if EXTEND_PROTOTYPES is set to false?
I.e. in [string](https://github.com/emberjs/ember.js/blob/master/packages/ember-runtime/lib/ext/string.js), have a
```function extendStringPrototype() {...}```
and
```if (Ember.EXTEND_PROTOTYPES) {
extendStringPrototype();
}```
This way I can call extendStringPrototype() manually even if EXTEND_PROTOTYPES is false.