Ember.FEATURES Namespace packages/ember-metal/lib/core.js:91

Hash of enabled Canary features. Add to this before creating your application.

You can also define ENV.FEATURES if you need to enable features flagged at runtime.

Show:

Methods

Show:

isEnabled

(feature) Boolean
Defined in packages/ember-metal/lib/core.js:104
Available since 1.1.0

Test that a feature is enabled. Parsed by Ember's build tools to leave experimental features out of beta/stable builds.

You can define the following configuration options:

  • ENV.ENABLE_ALL_FEATURES - force all features to be enabled.
  • ENV.ENABLE_OPTIONAL_FEATURES - enable any features that have not been explicitly enabled/disabled.

Parameters:

feature String

Returns:

Boolean