From b514d04f58276fbe2a61f52d684b7b53bca33693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 6 Nov 2013 02:22:24 +0100 Subject: [PATCH] Export Http so the separate PaperScript scope can reach it. --- src/core/PaperScript.js | 2 +- src/export.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/PaperScript.js b/src/core/PaperScript.js index 3a78f16a..178397dc 100644 --- a/src/core/PaperScript.js +++ b/src/core/PaperScript.js @@ -315,7 +315,7 @@ paper.PaperScope.prototype.PaperScript = (function(root) { if (src) { // If we're loading from a source, request that first and // then run later. - Http.request('get', src, function(code) { + paper.Http.request('get', src, function(code) { evaluate(code, scope); }); } else { diff --git a/src/export.js b/src/export.js index a96cbb4f..be2881d7 100644 --- a/src/export.js +++ b/src/export.js @@ -22,6 +22,7 @@ paper = new (PaperScope.inject(Base.merge(Base.exports, { Numerical: Numerical, DomElement: DomElement, DomEvent: DomEvent, + Http: Http, Key: Key })))();