mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Improve documentation for PaperScope#install()
This commit is contained in:
parent
f7711fab57
commit
470360301c
1 changed files with 5 additions and 2 deletions
|
@ -141,11 +141,14 @@ var PaperScope = this.PaperScope = Base.extend(/** @scope _global_ */{
|
|||
},
|
||||
|
||||
/**
|
||||
* Installs the paper scope into any other given scope. Can be used for
|
||||
* Injects the paper scope into any other given scope. Can be used for
|
||||
* examle to inject the currently active PaperScope into the window's global
|
||||
* scope, to emulate PaperScript-style globally accessible Paper classes:
|
||||
* scope, to emulate PaperScript-style globally accessible Paper classes and
|
||||
* objects:
|
||||
*
|
||||
* @example
|
||||
* paper.install(window);
|
||||
*
|
||||
* @ignore
|
||||
*/
|
||||
install: function(scope) {
|
||||
|
|
Loading…
Reference in a new issue