Skip to content

Commit

Permalink
[build] 3.2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
karol-f committed Oct 15, 2019
1 parent ce2f2b7 commit 9bd1b54
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
5 changes: 3 additions & 2 deletions dist/vue-custom-element.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* vue-custom-element v3.2.9
* vue-custom-element v3.2.10
* (c) 2019 Karol Fabjańczuk
* @license MIT
*/
Expand Down Expand Up @@ -446,7 +446,8 @@ function createVueInstance(element, Vue, componentDefinition, props, options) {
element.__vue_custom_element__ = new Vue(rootElement);
element.__vue_custom_element_props__ = props;
element.getVueInstance = function () {
return element.__vue_custom_element__.$children[0];
var vueInstance = element.__vue_custom_element__;
return vueInstance.$children.length ? vueInstance.$children[0] : vueInstance;
};

if (options.shadow && options.shadowCss && element.shadowRoot) {
Expand Down
5 changes: 3 additions & 2 deletions dist/vue-custom-element.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* vue-custom-element v3.2.9
* vue-custom-element v3.2.10
* (c) 2019 Karol Fabjańczuk
* @license MIT
*/
Expand Down Expand Up @@ -452,7 +452,8 @@ function createVueInstance(element, Vue, componentDefinition, props, options) {
element.__vue_custom_element__ = new Vue(rootElement);
element.__vue_custom_element_props__ = props;
element.getVueInstance = function () {
return element.__vue_custom_element__.$children[0];
var vueInstance = element.__vue_custom_element__;
return vueInstance.$children.length ? vueInstance.$children[0] : vueInstance;
};

if (options.shadow && options.shadowCss && element.shadowRoot) {
Expand Down
4 changes: 2 additions & 2 deletions dist/vue-custom-element.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/demo.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/demo.js.map

Large diffs are not rendered by default.

0 comments on commit 9bd1b54

Please sign in to comment.