API Docs for: 1.0 pre
Show:

Ember.FEATURES Class

Module: ember-metal
Parent Module: ember

Available since 1.1.0

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

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

Item Index

Methods

Methods

isEnabled

(
  • feature
)
Boolean

Defined in ../packages_es6/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:

Returns:

Boolean: