docs: 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');
        }
      }