deprecateProperty (object, deprecatedKey, newKey) private
Used internally to allow changing properties in a backwards compatible way, and print a helpful deprecation warning.
Parameters:
-
object
Object
- The object to add the deprecated property to.
-
deprecatedKey
String
- The property to add (and print deprecation warnings upon accessing).
-
newKey
String
- The property that will be aliased.
Please login to continue.