Have ctor functions be unnamed, so they don't show as 'ctor' prototypes in debugging.

This commit is contained in:
Jürg Lehni 2011-05-14 20:06:25 +01:00
parent 2a24ec66ac
commit ed2ef0231f

2
lib/bootstrap.js vendored
View file

@ -149,7 +149,7 @@ var Base = this.Base = new function() {
}
function extend(obj) {
function ctor(dont) {
var ctor = function(dont) {
if (fix) define(this, '__proto__', { value: obj });
if (this.initialize && dont !== ctor.dont)
return this.initialize.apply(this, arguments);