mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Return the inserted item in #addChild() & co, instead of true / false.
This commit is contained in:
parent
28642bd1c8
commit
c70948c762
1 changed files with 2 additions and 2 deletions
|
@ -1147,9 +1147,9 @@ function(name) {
|
|||
if (item._name)
|
||||
item.setName(item._name);
|
||||
this._changed(/*#=*/ Change.HIERARCHY);
|
||||
return true;
|
||||
return item;
|
||||
}
|
||||
return false;
|
||||
return null;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue