benchmarks/scenarios/ember.js
function (klass) {
      _emberMetalDebug.deprecate('nearestChildOf has been deprecated.', false, { id: 'ember-views.nearest-child-of', until: '3.0.0' });

      var view = _emberMetalProperty_get.get(this, 'parentView');

      while (view) {
        if (_emberMetalProperty_get.get(view, 'parentView') instanceof klass) {
          return view;
        }
        view = _emberMetalProperty_get.get(view, 'parentView');
      }
    }
function (klass) {
      _emberMetalDebug.deprecate('nearestChildOf has been deprecated.', false, { id: 'ember-views.nearest-child-of', until: '3.0.0' });

      var view = _emberMetalProperty_get.get(this, 'parentView');

      while (view) {
        if (_emberMetalProperty_get.get(view, 'parentView') instanceof klass) {
          return view;
        }
        view = _emberMetalProperty_get.get(view, 'parentView');
      }
    }
function ( klass ) { _emberMetalDebug . deprecate ( 'nearestChildOf has been deprecated.' , false , { id : 'ember-views.nearest-child-of' , until : '3.0.0' } ) ; var view = _emberMetalProperty_get . get ( this , 'parentView' ) ; while ( view ) { if ( _emberMetalProperty_get . get ( view , 'parentView' ) instanceof klass ) { return view ; } view = _emberMetalProperty_get . get ( view , 'parentView' ) ; } }
Return the nearest ancestor whose parent is an instance of
`klass`.
@method nearestChildOf
@param {Class} klass Subclass of Ember.View (or Ember.View itself)
@return Ember.View
@deprecated
@private
Return the nearest ancestor whose parent is an instance of klass .