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 })))();