dispose()

in src/Bootstrapper.js [237:250]


	dispose(cb = null) {
		this.unmountHabitats(() => {
			// Reset and release
			this.__container__ = null;

			// Lifecycle event
			if (typeof this.didDispose === 'function') {
				this.didDispose();
			}

			// Handle callback
			_callback(cb, this);
		});
	}