From 81a04ad86c1a345e7d1009a8702504d4127f7d21 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sun, 3 Sep 2017 10:02:41 -0400 Subject: [PATCH] merge master -> gh-797 --- .../expected-bundle.js | 12 +++++++++++- .../inline-style-optimized-url/expected-bundle.js | 12 +++++++++++- .../inline-style-optimized/expected-bundle.js | 12 +++++++++++- .../inline-style-unoptimized/expected-bundle.js | 12 +++++++++++- 4 files changed, 44 insertions(+), 4 deletions(-) diff --git a/test/js/samples/inline-style-optimized-multiple/expected-bundle.js b/test/js/samples/inline-style-optimized-multiple/expected-bundle.js index c9f7b3729a..4f9f0c5949 100644 --- a/test/js/samples/inline-style-optimized-multiple/expected-bundle.js +++ b/test/js/samples/inline-style-optimized-multiple/expected-bundle.js @@ -145,6 +145,14 @@ function callAll(fns) { while (fns && fns.length) fns.pop()(); } +function _mount(target, anchor) { + this._fragment.mount(target, anchor); +} + +function _unmount() { + this._fragment.unmount(); +} + var proto = { destroy: destroy, get: get, @@ -154,7 +162,9 @@ var proto = { set: set, teardown: destroy, _recompute: noop, - _set: _set + _set: _set, + _mount: _mount, + _unmount: _unmount }; function create_main_fragment ( state, component ) { diff --git a/test/js/samples/inline-style-optimized-url/expected-bundle.js b/test/js/samples/inline-style-optimized-url/expected-bundle.js index e3793b4fe1..3b55e1678f 100644 --- a/test/js/samples/inline-style-optimized-url/expected-bundle.js +++ b/test/js/samples/inline-style-optimized-url/expected-bundle.js @@ -145,6 +145,14 @@ function callAll(fns) { while (fns && fns.length) fns.pop()(); } +function _mount(target, anchor) { + this._fragment.mount(target, anchor); +} + +function _unmount() { + this._fragment.unmount(); +} + var proto = { destroy: destroy, get: get, @@ -154,7 +162,9 @@ var proto = { set: set, teardown: destroy, _recompute: noop, - _set: _set + _set: _set, + _mount: _mount, + _unmount: _unmount }; function create_main_fragment ( state, component ) { diff --git a/test/js/samples/inline-style-optimized/expected-bundle.js b/test/js/samples/inline-style-optimized/expected-bundle.js index 98713a9e1b..0c5ce75b2a 100644 --- a/test/js/samples/inline-style-optimized/expected-bundle.js +++ b/test/js/samples/inline-style-optimized/expected-bundle.js @@ -145,6 +145,14 @@ function callAll(fns) { while (fns && fns.length) fns.pop()(); } +function _mount(target, anchor) { + this._fragment.mount(target, anchor); +} + +function _unmount() { + this._fragment.unmount(); +} + var proto = { destroy: destroy, get: get, @@ -154,7 +162,9 @@ var proto = { set: set, teardown: destroy, _recompute: noop, - _set: _set + _set: _set, + _mount: _mount, + _unmount: _unmount }; function create_main_fragment ( state, component ) { diff --git a/test/js/samples/inline-style-unoptimized/expected-bundle.js b/test/js/samples/inline-style-unoptimized/expected-bundle.js index f463764157..4848e382a3 100644 --- a/test/js/samples/inline-style-unoptimized/expected-bundle.js +++ b/test/js/samples/inline-style-unoptimized/expected-bundle.js @@ -145,6 +145,14 @@ function callAll(fns) { while (fns && fns.length) fns.pop()(); } +function _mount(target, anchor) { + this._fragment.mount(target, anchor); +} + +function _unmount() { + this._fragment.unmount(); +} + var proto = { destroy: destroy, get: get, @@ -154,7 +162,9 @@ var proto = { set: set, teardown: destroy, _recompute: noop, - _set: _set + _set: _set, + _mount: _mount, + _unmount: _unmount }; function create_main_fragment ( state, component ) {