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

dist/vue-class-component.common.js

Lines changed: 9 additions & 3 deletions
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

dist/vue-class-component.js

Lines changed: 9 additions & 3 deletions
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

dist/vue-class-component.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy