warn (message, test, options) public
Display a warning with the provided message.
- 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.
Parameters:
-
message
String
- A warning to display.
-
test
Boolean
- An optional boolean. If falsy, the warning will be displayed.
-
options
Object
- An object that can be used to pass a unique `id` for this warning. The `id` can be used by Ember debugging tools to change the behavior (raise, log, or silence) for that specific warning. The `id` should be namespaced by dots, e.g. "ember-debug.feature-flag-with-features-stripped"
Please login to continue.