mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Fix typo.
This commit is contained in:
parent
c21e19b303
commit
87fe0dd7cd
1 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ var fs = require('fs'),
|
||||||
|
|
||||||
module.exports = function(paper) {
|
module.exports = function(paper) {
|
||||||
if (paper.PaperScript) {
|
if (paper.PaperScript) {
|
||||||
var sourceMapSupprt = 'require("source-map-support").install(paper.PaperScript.sourceMapSupport);\n',
|
var sourceMapSupport = 'require("source-map-support").install(paper.PaperScript.sourceMapSupport);\n',
|
||||||
sourceMaps = {};
|
sourceMaps = {};
|
||||||
|
|
||||||
paper.PaperScript.sourceMapSupport = {
|
paper.PaperScript.sourceMapSupport = {
|
||||||
|
@ -32,12 +32,12 @@ module.exports = function(paper) {
|
||||||
// PaperScope.
|
// PaperScope.
|
||||||
module.exports = function(canvas) {
|
module.exports = function(canvas) {
|
||||||
var source = fs.readFileSync(filename, 'utf8'),
|
var source = fs.readFileSync(filename, 'utf8'),
|
||||||
code = sourceMapSupprt + source,
|
code = sourceMapSupport + source,
|
||||||
compiled = paper.PaperScript.compile(code, {
|
compiled = paper.PaperScript.compile(code, {
|
||||||
url: filename,
|
url: filename,
|
||||||
source: source,
|
source: source,
|
||||||
sourceMaps: true,
|
sourceMaps: true,
|
||||||
offset: -1 // remove sourceMapSupprt...
|
offset: -1 // remove sourceMapSupport...
|
||||||
}),
|
}),
|
||||||
scope = new paper.PaperScope();
|
scope = new paper.PaperScope();
|
||||||
// Keep track of sourceMaps so retrieveSourceMap() can link them up
|
// Keep track of sourceMaps so retrieveSourceMap() can link them up
|
||||||
|
|
Loading…
Reference in a new issue