mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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) {
|
||||
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 = {};
|
||||
|
||||
paper.PaperScript.sourceMapSupport = {
|
||||
|
@ -32,12 +32,12 @@ module.exports = function(paper) {
|
|||
// PaperScope.
|
||||
module.exports = function(canvas) {
|
||||
var source = fs.readFileSync(filename, 'utf8'),
|
||||
code = sourceMapSupprt + source,
|
||||
code = sourceMapSupport + source,
|
||||
compiled = paper.PaperScript.compile(code, {
|
||||
url: filename,
|
||||
source: source,
|
||||
sourceMaps: true,
|
||||
offset: -1 // remove sourceMapSupprt...
|
||||
offset: -1 // remove sourceMapSupport...
|
||||
}),
|
||||
scope = new paper.PaperScope();
|
||||
// Keep track of sourceMaps so retrieveSourceMap() can link them up
|
||||
|
|
Loading…
Reference in a new issue