Remove _owner check in Base.read() again.

This commit is contained in:
Jürg Lehni 2011-05-08 14:29:49 +01:00
parent aac87dba14
commit e0e8ee0152

View file

@ -59,11 +59,7 @@ Base.inject({
var start = start || 0,
length = length || list.length - start;
var obj = list[start];
// As a convention, do not return objects that are owned, e.g.
// LinkedPoint or SegmentPoint, although they are instances of Point,
// since they override properties with beans. Convert these to pure
// Points instead, further down.
if (obj && !obj._owner && obj instanceof this
if (obj instanceof this
// If the class defines _readNull, return null when nothing
// was provided
|| this.prototype._readNull && obj == null && length <= 1)