Fix Base.read() to support alternative objcets returned by initialize().

This commit is contained in:
Jürg Lehni 2011-03-04 17:01:15 +00:00
parent fb547a758f
commit bbf19840d3

6
lib/bootstrap.js vendored
View file

@ -205,11 +205,9 @@ new function() {
return args[index];
} else if (length != 0) {
var obj = new this(this.dont);
if (!obj.initialize)
debugger;
obj.initialize.apply(obj, index > 0 || length < args.length
obj = obj.initialize.apply(obj, index > 0 || length < args.length
? Array.prototype.slice.call(args, index, index + length)
: args);
: args) || obj;
return obj;
}
return null;