mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Improve documentating comments.
This commit is contained in:
parent
032d19b0d2
commit
8c2ad5f331
1 changed files with 8 additions and 1 deletions
|
@ -43,15 +43,22 @@ var paper = this;
|
|||
this.document = null;
|
||||
this.documents = [];
|
||||
|
||||
/**
|
||||
* Installs the paper scope into any other given scope. Can be used for examle
|
||||
* to inject into the window's global scope:
|
||||
*
|
||||
* paper.install(window);
|
||||
*/
|
||||
this.install = function(scope) {
|
||||
for (var i in this) {
|
||||
scope[i] = this[i];
|
||||
}
|
||||
};
|
||||
|
||||
// Inline Base core inside the paper scope first:
|
||||
// Inline Bootstrap core (the Base class) inside the paper scope first:
|
||||
//#include "../lib/bootstrap.js"
|
||||
|
||||
// Extend Base with utility functions used across the library.
|
||||
Base.inject({
|
||||
statics: true,
|
||||
|
||||
|
|
Loading…
Reference in a new issue