deprecateFunc (message, options, func) Functionprivate
Alias an old, deprecated method with its new counterpart.
Display a deprecation warning with the provided message and a stack trace (Chrome and Firefox only) when the assigned method is called.
- In a production build, this method is defined as an empty function (NOP).
Ember.oldMethod = Ember.deprecateFunc('Please use the new, updated method', Ember.newMethod);
Parameters:
-
message
String - A description of the deprecation.
-
options
[Object] - The options object for Ember.deprecate.
-
func
Function - The new function called to replace its deprecated counterpart.
Returns:
-
Function - A new function that wraps the original function with a deprecation warning
Please login to continue.