Last Updated: February 25, 2016
· alanandrade

Ember behaves differently on production variant.

If you're code relies on Em.keys() be aware that it will behave differently on the production variant unless you specify an ENV option.

Before you link ember, you need to set Ember = { ENV: { MANDATORY_SETTER: true }}; on a script tag.

<script src="//"></script>
  Ember = { ENV: { MANDATORY_SETTER: true }};
<script src=""></script>

Here is the issue with more context and detail.

I can't figure out why development and production variant would change that essential behavior. The answer might be deep into Ember.js internals. Who knows.