Function
deprecate (message, test, options) public
Module:
@ember/debug
Defined in packages/ember-debug/lib/deprecate.js:137
Available since v1.0.0
import { deprecate } from '@ember/application/deprecations'; |
- message
- String
- A description of the deprecation.
- test
- Boolean
- A boolean. If falsy, the deprecation will be displayed.
- options
- Object
Display a deprecation warning with the provided message and a stack trace (Chrome and Firefox only).
- In a production build, this method is defined as an empty function (NOP). Uses of this method in Ember itself are stripped from the ember.prod.js build.