Skip to content

Commit 7d75604

Browse files
committed
[build] 7.0.2
1 parent d024dcc commit 7d75604

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

Diff for: dist/vue-class-component.common.js

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* vue-class-component v7.0.1
2+
* vue-class-component v7.0.2
33
* (c) 2015-present Evan You
44
* @license MIT
55
*/
@@ -211,11 +211,17 @@ var reservedPropertyNames = [
211211
'directive',
212212
'filter'
213213
];
214+
var shouldIgnore = {
215+
prototype: true,
216+
arguments: true,
217+
callee: true,
218+
caller: true
219+
};
214220
function forwardStaticMembers(Extended, Original, Super) {
215221
// We have to use getOwnPropertyNames since Babel registers methods as non-enumerable
216222
Object.getOwnPropertyNames(Original).forEach(function (key) {
217-
// `prototype` should not be overwritten
218-
if (key === 'prototype') {
223+
// Skip the properties that should not be overwritten
224+
if (shouldIgnore[key]) {
219225
return;
220226
}
221227
// Some browsers does not allow reconfigure built-in properties

Diff for: dist/vue-class-component.js

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* vue-class-component v7.0.1
2+
* vue-class-component v7.0.2
33
* (c) 2015-present Evan You
44
* @license MIT
55
*/
@@ -211,11 +211,17 @@
211211
'directive',
212212
'filter'
213213
];
214+
var shouldIgnore = {
215+
prototype: true,
216+
arguments: true,
217+
callee: true,
218+
caller: true
219+
};
214220
function forwardStaticMembers(Extended, Original, Super) {
215221
// We have to use getOwnPropertyNames since Babel registers methods as non-enumerable
216222
Object.getOwnPropertyNames(Original).forEach(function (key) {
217-
// `prototype` should not be overwritten
218-
if (key === 'prototype') {
223+
// Skip the properties that should not be overwritten
224+
if (shouldIgnore[key]) {
219225
return;
220226
}
221227
// Some browsers does not allow reconfigure built-in properties

Diff for: 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)