mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-11 05:29:13 -04:00
Remove need for _needsRedraw() calls by replacing it with a boolean flag.
This commit is contained in:
parent
fd3f698fe9
commit
4e6f52c20c
5 changed files with 5 additions and 10 deletions
src/project
|
@ -72,11 +72,6 @@ var Project = PaperScopeItem.extend(/** @lends Project# */{
|
|||
return Base.serialize(this.layers, options, false, dictionary);
|
||||
},
|
||||
|
||||
_needsRedraw: function() {
|
||||
if (this.view)
|
||||
this.view._redrawNeeded = true;
|
||||
},
|
||||
|
||||
/**
|
||||
* Activates this project, so all newly created items will be placed
|
||||
* in it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue