mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -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
|
* @function
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// DOCS: Project#clear()
|
/**
|
||||||
|
* Clears the project by removing all {@link Project#layers} and
|
||||||
|
* {@link Project#symbols}.
|
||||||
|
*/
|
||||||
clear: function() {
|
clear: function() {
|
||||||
for (var i = this.layers.length - 1; i >= 0; i--)
|
for (var i = this.layers.length - 1; i >= 0; i--)
|
||||||
this.layers[i].remove();
|
this.layers[i].remove();
|
||||||
|
|
Loading…
Reference in a new issue