Descriptor

Descriptor Class

PRIVATE

Defined in: packages/ember-metal/lib/properties.js:13

Module: ember-metal

Objects of this type can implement an interface to respond to requests to get and set. The default implementation handles simple properties.

deprecateProperty (object, deprecatedKey, newKey) private

Defined in packages/ember-metal/lib/deprecate_property.js:11
Available since 1.7.0

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.

© 2017 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://emberjs.com/api/classes/Descriptor.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部