From 8c2ad5f3316c8a0a40d771b6dec0ce10e1bc97ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 14 May 2011 12:41:06 +0300 Subject: [PATCH] Improve documentating comments. --- src/paper.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/paper.js b/src/paper.js index 182d8029..3e6b0bdc 100644 --- a/src/paper.js +++ b/src/paper.js @@ -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,