Function

deprecate (message, test, options) public

Module: @ember/debug

Available since v1.0.0

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.

© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/3.25/functions/@ember%2Fdebug/deprecate