Skip to content

Commit 96d7d2f

Browse files
committedNov 29, 2019
[build] 3.2.11
1 parent ac62119 commit 96d7d2f

5 files changed

+20
-14
lines changed
 

‎dist/vue-custom-element.esm.js

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* vue-custom-element v3.2.10
2+
* vue-custom-element v3.2.11
33
* (c) 2019 Karol Fabjańczuk
44
* @license MIT
55
*/
@@ -382,11 +382,14 @@ function createVueInstance(element, Vue, componentDefinition, props, options) {
382382
ComponentDefinition.beforeCreate = [].concat(ComponentDefinition.beforeCreate || [], beforeCreate);
383383

384384
if (ComponentDefinition._compiled) {
385-
var ctorOptions = {};
386-
if (ComponentDefinition._Ctor) {
387-
ctorOptions = Object.values(ComponentDefinition._Ctor)[0].options;
385+
var constructorOptions = {};
386+
var _constructor = ComponentDefinition._Ctor;
387+
if (_constructor) {
388+
constructorOptions = Object.keys(_constructor).map(function (key) {
389+
return _constructor[key];
390+
})[0].options;
388391
}
389-
ctorOptions.beforeCreate = ComponentDefinition.beforeCreate;
392+
constructorOptions.beforeCreate = ComponentDefinition.beforeCreate;
390393
}
391394

392395
var rootElement = void 0;

‎dist/vue-custom-element.js

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* vue-custom-element v3.2.10
2+
* vue-custom-element v3.2.11
33
* (c) 2019 Karol Fabjańczuk
44
* @license MIT
55
*/
@@ -388,11 +388,14 @@ function createVueInstance(element, Vue, componentDefinition, props, options) {
388388
ComponentDefinition.beforeCreate = [].concat(ComponentDefinition.beforeCreate || [], beforeCreate);
389389

390390
if (ComponentDefinition._compiled) {
391-
var ctorOptions = {};
392-
if (ComponentDefinition._Ctor) {
393-
ctorOptions = Object.values(ComponentDefinition._Ctor)[0].options;
391+
var constructorOptions = {};
392+
var _constructor = ComponentDefinition._Ctor;
393+
if (_constructor) {
394+
constructorOptions = Object.keys(_constructor).map(function (key) {
395+
return _constructor[key];
396+
})[0].options;
394397
}
395-
ctorOptions.beforeCreate = ComponentDefinition.beforeCreate;
398+
constructorOptions.beforeCreate = ComponentDefinition.beforeCreate;
396399
}
397400

398401
var rootElement = void 0;

‎dist/vue-custom-element.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/demo.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/demo.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.