No need to call has(), since __proto__ is hidden using define().

This commit is contained in:
Jürg Lehni 2011-06-03 13:57:57 +01:00
parent 8e1c030230
commit a0e120ac5c

2
lib/bootstrap.js vendored
View file

@ -39,7 +39,7 @@ var Base = this.Base = new function() {
},
forIn = function(iter, bind) {
for (var i in this)
if (has.call(this, i))
if (this.hasOwnProperty(i))
iter.call(bind, this[i], i, this);
},
_define = Object.defineProperty,