benchmarks/scenarios/ember.js
function deprecatingAlias(dependentKey, options) {
    return _emberMetalComputed.computed(dependentKey, {
      get: function (key) {
        _emberMetalDebug.deprecate('Usage of `' + key + '` is deprecated, use `' + dependentKey + '` instead.', false, options);
        return _emberMetalProperty_get.get(this, dependentKey);
      },
      set: function (key, value) {
        _emberMetalDebug.deprecate('Usage of `' + key + '` is deprecated, use `' + dependentKey + '` instead.', false, options);
        _emberMetalProperty_set.set(this, dependentKey, value);
        return value;
      }
    });
  }
function deprecatingAlias(dependentKey, options) {
    return _emberMetalComputed.computed(dependentKey, {
      get: function (key) {
        _emberMetalDebug.deprecate('Usage of `' + key + '` is deprecated, use `' + dependentKey + '` instead.', false, options);
        return _emberMetalProperty_get.get(this, dependentKey);
      },
      set: function (key, value) {
        _emberMetalDebug.deprecate('Usage of `' + key + '` is deprecated, use `' + dependentKey + '` instead.', false, options);
        _emberMetalProperty_set.set(this, dependentKey, value);
        return value;
      }
    });
  }
function deprecatingAlias ( dependentKey , options ) { return _emberMetalComputed . computed ( dependentKey , { get : function ( key ) { _emberMetalDebug . deprecate ( 'Usage of `' + key + '` is deprecated, use `' + dependentKey + '` instead.' , false , options ) ; return _emberMetalProperty_get . get ( this , dependentKey ) ; } , set : function ( key , value ) { _emberMetalDebug . deprecate ( 'Usage of `' + key + '` is deprecated, use `' + dependentKey + '` instead.' , false , options ) ; _emberMetalProperty_set . set ( this , dependentKey , value ) ; return value ; } } ) ; }
Creates a new property that is an alias for another property
on an object. Calls to `get` or `set` this property behave as
though they were called on the original property, but also
print a deprecation warning.

@method deprecatingAlias
@for Ember.computed
@param {String} dependentKey
@return {Ember.ComputedProperty} computed property which creates an
alias with a deprecation to the original value for property.
@since 1.7.0
@public
Creates a new property that is an alias for another property on an object . Calls to get or set this property behave as though they were called on the original property but also print a deprecation warning .