Skip to content

Commit 8c2ad5f

Browse files
committed
Improve documentating comments.
1 parent 032d19b commit 8c2ad5f

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/paper.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,22 @@ var paper = this;
4343
this.document = null;
4444
this.documents = [];
4545

46+
/**
47+
* Installs the paper scope into any other given scope. Can be used for examle
48+
* to inject into the window's global scope:
49+
*
50+
* paper.install(window);
51+
*/
4652
this.install = function(scope) {
4753
for (var i in this) {
4854
scope[i] = this[i];
4955
}
5056
};
5157

52-
// Inline Base core inside the paper scope first:
58+
// Inline Bootstrap core (the Base class) inside the paper scope first:
5359
//#include "../lib/bootstrap.js"
5460

61+
// Extend Base with utility functions used across the library.
5562
Base.inject({
5663
statics: true,
5764

0 commit comments

Comments
 (0)