Skip to content

Commit 8f8fa73

Browse files
committed
[build] 6.1.2
1 parent 7580098 commit 8f8fa73

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

dist/vue-class-component.common.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* vue-class-component v6.1.1
2+
* vue-class-component v6.1.2
33
* (c) 2015-2017 Evan You
44
* @license MIT
55
*/
@@ -37,6 +37,7 @@ function warn(message) {
3737
}
3838

3939
function collectDataFromConstructor(vm, Component) {
40+
var originalInit = Component.prototype._init;
4041
Component.prototype._init = function () {
4142
var _this = this;
4243
var keys = Object.getOwnPropertyNames(vm);
@@ -58,6 +59,7 @@ function collectDataFromConstructor(vm, Component) {
5859
});
5960
};
6061
var data = new Component();
62+
Component.prototype._init = originalInit;
6163
var plainData = {};
6264
Object.keys(data).forEach(function (key) {
6365
if (data[key] !== undefined) {

dist/vue-class-component.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* vue-class-component v6.1.1
2+
* vue-class-component v6.1.2
33
* (c) 2015-2017 Evan You
44
* @license MIT
55
*/
@@ -37,6 +37,7 @@ function warn(message) {
3737
}
3838

3939
function collectDataFromConstructor(vm, Component) {
40+
var originalInit = Component.prototype._init;
4041
Component.prototype._init = function () {
4142
var _this = this;
4243
var keys = Object.getOwnPropertyNames(vm);
@@ -58,6 +59,7 @@ function collectDataFromConstructor(vm, Component) {
5859
});
5960
};
6061
var data = new Component();
62+
Component.prototype._init = originalInit;
6163
var plainData = {};
6264
Object.keys(data).forEach(function (key) {
6365
if (data[key] !== undefined) {

dist/vue-class-component.min.js

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

0 commit comments

Comments
 (0)