mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-28 06:39:33 -04:00
Allow CompoundPath to have named children.
This commit is contained in:
parent
e2b7d4c924
commit
503a031bdf
2 changed files with 3 additions and 0 deletions
src/path
|
@ -42,7 +42,9 @@ var CompoundPath = this.CompoundPath = PathItem.extend({
|
|||
*/
|
||||
initialize: function(paths) {
|
||||
this.base();
|
||||
// Allow CompoundPath to have children and named children.
|
||||
this._children = [];
|
||||
this._namedChildren = {};
|
||||
// Do not reassign to paths, since arguments would get modified, which
|
||||
// we potentially use as array, depending on what is passed.
|
||||
var items = !paths || !Array.isArray(paths)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue