|
|
@ -145,6 +145,14 @@ function callAll(fns) {
|
|
|
|
while (fns && fns.length) fns.pop()();
|
|
|
|
while (fns && fns.length) fns.pop()();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function _mount(target, anchor) {
|
|
|
|
|
|
|
|
this._fragment.mount(target, anchor);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function _unmount() {
|
|
|
|
|
|
|
|
this._fragment.unmount();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var proto = {
|
|
|
|
var proto = {
|
|
|
|
destroy: destroy,
|
|
|
|
destroy: destroy,
|
|
|
|
get: get,
|
|
|
|
get: get,
|
|
|
@ -154,7 +162,9 @@ var proto = {
|
|
|
|
set: set,
|
|
|
|
set: set,
|
|
|
|
teardown: destroy,
|
|
|
|
teardown: destroy,
|
|
|
|
_recompute: noop,
|
|
|
|
_recompute: noop,
|
|
|
|
_set: _set
|
|
|
|
_set: _set,
|
|
|
|
|
|
|
|
_mount: _mount,
|
|
|
|
|
|
|
|
_unmount: _unmount
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
function create_main_fragment ( state, component ) {
|
|
|
|
function create_main_fragment ( state, component ) {
|
|
|
|