Remove the associated PaperScope when a Project is removed.

This commit is contained in:
Jürg Lehni 2011-06-27 14:35:30 +02:00
parent cd2fce9bc7
commit d1305ff91c

View file

@ -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;
}