|
|
@ -27,11 +27,11 @@ function destroy(detach) {
|
|
|
|
this._fragment = this._state = null;
|
|
|
|
this._fragment = this._state = null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function differs(a, b) {
|
|
|
|
function _differs(a, b) {
|
|
|
|
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
|
|
|
|
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function differsImmutable(a, b) {
|
|
|
|
function _differsImmutable(a, b) {
|
|
|
|
return a != a ? b == b : a !== b;
|
|
|
|
return a != a ? b == b : a !== b;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -74,7 +74,6 @@ function init(component, options) {
|
|
|
|
component._observers = { pre: blankObject(), post: blankObject() };
|
|
|
|
component._observers = { pre: blankObject(), post: blankObject() };
|
|
|
|
component._handlers = blankObject();
|
|
|
|
component._handlers = blankObject();
|
|
|
|
component._bind = options._bind;
|
|
|
|
component._bind = options._bind;
|
|
|
|
component._differs = differs;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
component.options = options;
|
|
|
|
component.options = options;
|
|
|
|
component.root = options.root || component;
|
|
|
|
component.root = options.root || component;
|
|
|
@ -170,14 +169,13 @@ var proto = {
|
|
|
|
_recompute: noop,
|
|
|
|
_recompute: noop,
|
|
|
|
_set: _set,
|
|
|
|
_set: _set,
|
|
|
|
_mount: _mount,
|
|
|
|
_mount: _mount,
|
|
|
|
_unmount: _unmount
|
|
|
|
_unmount: _unmount,
|
|
|
|
|
|
|
|
_differs: _differs
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/* generated by Svelte vX.Y.Z */
|
|
|
|
/* generated by Svelte vX.Y.Z */
|
|
|
|
var Nested = window.Nested;
|
|
|
|
var Nested = window.Nested;
|
|
|
|
|
|
|
|
|
|
|
|
var immutable = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function create_main_fragment(state, component) {
|
|
|
|
function create_main_fragment(state, component) {
|
|
|
|
|
|
|
|
|
|
|
|
var nested = new Nested({
|
|
|
|
var nested = new Nested({
|
|
|
@ -208,9 +206,6 @@ function create_main_fragment(state, component) {
|
|
|
|
|
|
|
|
|
|
|
|
function SvelteComponent(options) {
|
|
|
|
function SvelteComponent(options) {
|
|
|
|
init(this, options);
|
|
|
|
init(this, options);
|
|
|
|
if (options.immutable !== undefined ? options.immutable : immutable) {
|
|
|
|
|
|
|
|
this._differs = differsImmutable;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this._state = assign({}, options.data);
|
|
|
|
this._state = assign({}, options.data);
|
|
|
|
|
|
|
|
|
|
|
|
if (!options.root) {
|
|
|
|
if (!options.root) {
|
|
|
@ -235,4 +230,6 @@ function SvelteComponent(options) {
|
|
|
|
|
|
|
|
|
|
|
|
assign(SvelteComponent.prototype, proto);
|
|
|
|
assign(SvelteComponent.prototype, proto);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SvelteComponent.prototype._differs = _differsImmutable;
|
|
|
|
|
|
|
|
|
|
|
|
export default SvelteComponent;
|
|
|
|
export default SvelteComponent;
|
|
|
|