docs: function (klass) {
        var view = _emberMetalProperty_get.get(this, 'parentView');
        var isOfType = klass instanceof _emberMetalMixin.Mixin ? function (view) {
          return klass.detect(view);
        } : function (view) {
          return klass.detect(view.constructor);
        };
  
        while (view) {
          if (isOfType(view)) {
            return view;
          }
          view = _emberMetalProperty_get.get(view, 'parentView');
        }
      }