Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4827

Disable Prototype Extension (Array.Prototype shouldn't contain _super)

$
0
0

@balaji wrote:

In Array Prototype. _super being included. I would like to avoid it by disabling the prototype extension.

Currently, we are splitting the ember, jquery in to another file (tp-vendor.js) instead of vendor.js.

at this case, when am trying to keep EXTEND_PROTOTYPE:false in environment.js it’s not working always its being set as true for Ember.ENV.EXTEND_PROTOTYPES but, EmberENV.EXTEND_PROTOTYPES set as false.

Where as by having ember and jquery in vendor.js, it’s reading properly from environment file and working fine (i.e. Ember.ENV.EXTEND_PROTOTYPES set as false and Array.Prototype doesn’t have _super).

Can anybody advise me why it’s been happening like that ? Is there a way to fix it with our defined case (splitting ember from vendor.js ?)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4827

Trending Articles