Skip to content

Commit

Permalink
Embed enabled features in debug builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Jan 15, 2015
1 parent 5975723 commit faa4f77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"ember-cli": "0.1.6",
"ember-cli-yuidoc": "^0.3.1",
"ember-publisher": "0.0.7",
"emberjs-build": "0.0.13",
"emberjs-build": "0.0.16",
"express": "^4.5.0",
"glob": "~4.3.2",
"htmlbars": "0.8.1",
Expand Down
6 changes: 5 additions & 1 deletion packages/ember-metal/lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ MetamorphENV.DISABLE_RANGE_API = Ember.ENV.DISABLE_RANGE_API;
@since 1.1.0
*/

Ember.FEATURES = Ember.ENV.FEATURES || {};
Ember.FEATURES = Ember.ENV.FEATURES;

if (!Ember.FEATURES) {
Ember.FEATURES = DEFAULT_FEATURES; //jshint ignore:line
}

/**
Test that a feature is enabled. Parsed by Ember's build tools to leave
Expand Down

0 comments on commit faa4f77

Please sign in to comment.