benchmarks/scenarios/ember.js
function (property) {
      var view = _emberMetalProperty_get.get(this, 'parentView');

      while (view) {
        if (property in view) {
          return view;
        }
        view = _emberMetalProperty_get.get(view, 'parentView');
      }
    }
function (property) {
      var view = _emberMetalProperty_get.get(this, 'parentView');

      while (view) {
        if (property in view) {
          return view;
        }
        view = _emberMetalProperty_get.get(view, 'parentView');
      }
    }
function ( property ) { var view = _emberMetalProperty_get . get ( this , 'parentView' ) ; while ( view ) { if ( property in view ) { return view ; } view = _emberMetalProperty_get . get ( view , 'parentView' ) ; } }
Return the nearest ancestor that has a given property.
@method nearestWithProperty
@param {String} property A property name
@return Ember.View
@private
Return the nearest ancestor that has a given property .