import Vue from 'vue';
export default Vue.extend({
  data: function data() {
    return {
      parent: {}
    };
  },
  methods: {
    findParent: function findParent(name) {
      var parent = this.$parent;

      while (parent) {
        if (parent.$options.name === name) {
          this.parent = parent;
          break;
        }

        parent = parent.$parent;
      }
    }
  }
});
//# sourceMappingURL=index.js.map