js/libs/ember-1.5.1.js
function(property) {
    var view = get(this, 'parentView');

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

    while (view) {
      if (property in view) { return view; }
      view = get(view, 'parentView');
    }
  }
Return the nearest ancestor that has a given property.

@function nearestWithProperty
@param {String} property A property name
@return Ember.View