Project#clear() docs.

This commit is contained in:
Jonathan Puckey 2014-04-28 18:19:56 +02:00
parent 2b712959f2
commit ff5630ac07

View file

@ -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();