Fix typo.

This commit is contained in:
Jürg Lehni 2016-12-31 06:50:08 +01:00
parent c21e19b303
commit 87fe0dd7cd

View file

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