From c053fb977afab0278779a7248048580804f33a76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 7 May 2011 20:50:32 +0100 Subject: [PATCH] Export PaperScript object and its load function as paper.load. --- src/util/PaperScript.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util/PaperScript.js b/src/util/PaperScript.js index da6c3905..ddb82002 100644 --- a/src/util/PaperScript.js +++ b/src/util/PaperScript.js @@ -14,7 +14,7 @@ * All rights reserved. */ -var PaperScript = new function() { +var PaperScript = this.PaperScript = new function() { //TODO: Make sure there are all the correct copyrights for the inlined parse-js: //#include "../../lib/parse-js-min.js" @@ -226,3 +226,6 @@ var PaperScript = new function() { //#endif // !BROWSER }; + +// Export load directly: +this.load = PaperScript.load;