mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Export Http so the separate PaperScript scope can reach it.
This commit is contained in:
parent
5630b7e415
commit
b514d04f58
2 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
|
@ -22,6 +22,7 @@ paper = new (PaperScope.inject(Base.merge(Base.exports, {
|
|||
Numerical: Numerical,
|
||||
DomElement: DomElement,
|
||||
DomEvent: DomEvent,
|
||||
Http: Http,
|
||||
Key: Key
|
||||
})))();
|
||||
|
||||
|
|
Loading…
Reference in a new issue