Define PaperScope#activate()

Closes #256.
This commit is contained in:
Jürg Lehni 2013-07-18 19:21:57 -07:00
parent ca790f9339
commit 6e1c89234d

View file

@ -172,6 +172,14 @@ var PaperScope = Base.extend(/** @lends PaperScope# */{
return this;
},
/**
* Activates this PaperScope, so all newly created items will be placed
* in its active project.
*/
activate: function() {
paper = this;
},
clear: function() {
// Remove all projects, views and tools.
// This also removes the installed event handlers.