_super and prototype should not be enumerable

This commit is contained in:
Sami Samhuri 2014-03-27 14:14:30 -07:00
parent ce401ac5a5
commit a1d51ff853

View file

@ -52,13 +52,16 @@ Base.extend = function(name) {
// Set up a link to the super object.
_super: {
value: this
value: this,
enumerable: false,
writable: false,
configurable: false
},
// Set up the prototype chain.
prototype: {
value: Object.create(this.prototype),
enumerable: true,
enumerable: false,
writable: true,
configurable: true
}