mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Remove _owner check in Base.read() again.
This commit is contained in:
parent
aac87dba14
commit
e0e8ee0152
1 changed files with 1 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue