mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Remove the associated PaperScope when a Project is removed.
This commit is contained in:
parent
cd2fce9bc7
commit
d1305ff91c
1 changed files with 1 additions and 0 deletions
|
@ -102,6 +102,7 @@ var Project = this.Project = Base.extend(/** @lends Project# */{
|
|||
remove: function() {
|
||||
if (this._scope) {
|
||||
Base.splice(this._scope.projects, null, this._index, 1);
|
||||
this._scope.remove();
|
||||
this._scope = null;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue