There was an error while loading. Please reload this page.
1 parent 032d19b commit 8c2ad5fCopy full SHA for 8c2ad5f
1 file changed
src/paper.js
@@ -43,15 +43,22 @@ var paper = this;
43
this.document = null;
44
this.documents = [];
45
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
+ */
52
this.install = function(scope) {
53
for (var i in this) {
54
scope[i] = this[i];
55
}
56
};
57
-// Inline Base core inside the paper scope first:
58
+// Inline Bootstrap core (the Base class) inside the paper scope first:
59
//#include "../lib/bootstrap.js"
60
61
+// Extend Base with utility functions used across the library.
62
Base.inject({
63
statics: true,
64
0 commit comments