mirror of
https://github.com/samsonjs/base.git
synced 2026-03-25 09:25:50 +00:00
_super and prototype should not be enumerable
This commit is contained in:
parent
ce401ac5a5
commit
a1d51ff853
1 changed files with 5 additions and 2 deletions
7
base.js
7
base.js
|
|
@ -52,13 +52,16 @@ Base.extend = function(name) {
|
||||||
|
|
||||||
// Set up a link to the super object.
|
// Set up a link to the super object.
|
||||||
_super: {
|
_super: {
|
||||||
value: this
|
value: this,
|
||||||
|
enumerable: false,
|
||||||
|
writable: false,
|
||||||
|
configurable: false
|
||||||
},
|
},
|
||||||
|
|
||||||
// Set up the prototype chain.
|
// Set up the prototype chain.
|
||||||
prototype: {
|
prototype: {
|
||||||
value: Object.create(this.prototype),
|
value: Object.create(this.prototype),
|
||||||
enumerable: true,
|
enumerable: false,
|
||||||
writable: true,
|
writable: true,
|
||||||
configurable: true
|
configurable: true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue