|
|
@ -201,7 +201,7 @@ function SvelteComponent ( options ) {
|
|
|
|
this._root = options._root || this;
|
|
|
|
this._root = options._root || this;
|
|
|
|
this._yield = options._yield;
|
|
|
|
this._yield = options._yield;
|
|
|
|
|
|
|
|
|
|
|
|
this._torndown = false;
|
|
|
|
this._destroyed = false;
|
|
|
|
if ( !document.getElementById( 'svelte-3590263702-style' ) ) add_css();
|
|
|
|
if ( !document.getElementById( 'svelte-3590263702-style' ) ) add_css();
|
|
|
|
|
|
|
|
|
|
|
|
this._fragment = create_main_fragment( this._state, this );
|
|
|
|
this._fragment = create_main_fragment( this._state, this );
|
|
|
@ -223,6 +223,7 @@ SvelteComponent.prototype._set = function _set ( newState ) {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
SvelteComponent.prototype.teardown = SvelteComponent.prototype.destroy = function destroy ( detach ) {
|
|
|
|
SvelteComponent.prototype.teardown = SvelteComponent.prototype.destroy = function destroy ( detach ) {
|
|
|
|
|
|
|
|
if ( this._destroyed ) return;
|
|
|
|
this.fire( 'destroy' );
|
|
|
|
this.fire( 'destroy' );
|
|
|
|
|
|
|
|
|
|
|
|
if ( detach !== false ) this._fragment.unmount();
|
|
|
|
if ( detach !== false ) this._fragment.unmount();
|
|
|
@ -230,7 +231,7 @@ SvelteComponent.prototype.teardown = SvelteComponent.prototype.destroy = functio
|
|
|
|
this._fragment = null;
|
|
|
|
this._fragment = null;
|
|
|
|
|
|
|
|
|
|
|
|
this._state = {};
|
|
|
|
this._state = {};
|
|
|
|
this._torndown = true;
|
|
|
|
this._destroyed = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
export default SvelteComponent;
|
|
|
|
export default SvelteComponent;
|
|
|
|