mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Project#clear() docs.
This commit is contained in:
parent
2b712959f2
commit
ff5630ac07
1 changed files with 4 additions and 2 deletions
|
@ -86,8 +86,10 @@ var Project = PaperScopeItem.extend(/** @lends Project# */{
|
|||
* @function
|
||||
*/
|
||||
|
||||
// DOCS: Project#clear()
|
||||
|
||||
/**
|
||||
* Clears the project by removing all {@link Project#layers} and
|
||||
* {@link Project#symbols}.
|
||||
*/
|
||||
clear: function() {
|
||||
for (var i = this.layers.length - 1; i >= 0; i--)
|
||||
this.layers[i].remove();
|
||||
|
|
Loading…
Reference in a new issue