Skip to content

$destroy throws error #610

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
jsedlacek opened this issue Dec 1, 2014 · 0 comments
Closed

$destroy throws error #610

jsedlacek opened this issue Dec 1, 2014 · 0 comments

Comments

@jsedlacek
Copy link

Components that use both sub-components and partials throw error on $destroy.

var view = new Vue({
  template: '<div><div v-component="dialog"><div v-partial="hello"></div></div></div>',
  partials: {
    hello: 'Hello {{name}}'
  },
  components: {
    dialog: {
      template: '<content>'
    }
  }
});
view.$mount();
view.$appendTo(document.body);
view.$destroy();

Result:

Error: 'undefined' is not an object (evaluating 'this._directives[i]._teardown')
    {anonymous}() node_modules/vue/src/api/lifecycle.js:87
    ...
@jsedlacek jsedlacek changed the title Vue.$destroy throws error $destroy throws error Dec 1, 2014
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants