Export Http so the separate PaperScript scope can reach it.

This commit is contained in:
Jürg Lehni 2013-11-06 02:22:24 +01:00
parent 5630b7e415
commit b514d04f58
2 changed files with 2 additions and 1 deletions

View file

@ -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 {

View file

@ -22,6 +22,7 @@ paper = new (PaperScope.inject(Base.merge(Base.exports, {
Numerical: Numerical,
DomElement: DomElement,
DomEvent: DomEvent,
Http: Http,
Key: Key
})))();