Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 0.4.1
- Fix potential error if component is destroyed before it has a chance to render.

## 0.4.0
- Switch to more friendly prop syntax for `{{> SvelteComponent}}`
- Allow directly passing component as only arg to `{{> SvelteComponent}}`
Expand Down
2 changes: 1 addition & 1 deletion SvelteComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Template.SvelteComponent.onRendered(function onRendered() {
});

Template.SvelteComponent.onDestroyed(function onDestroyed() {
this.component.$destroy();
if (this.component) this.component.$destroy();
});

function create_default_slot(ctx) {
Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
name: 'svelte:blaze-integration',
version: '0.4.0',
version: '0.4.1',
summary: 'Render Blaze templates inside your Svelte components and vice versa.',
git: 'https://github.com/meteor-svelte/blaze-integration',
documentation: 'README.md',
Expand Down