mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Fix wrong __options comments.
This commit is contained in:
parent
48cb05a181
commit
9da6325f49
1 changed files with 6 additions and 6 deletions
|
@ -310,10 +310,10 @@ Base.exports.PaperScript = (function() {
|
||||||
JSON.stringify(sourceMap)))))
|
JSON.stringify(sourceMap)))))
|
||||||
+ "\n//# sourceURL=" + (url || 'paperscript');
|
+ "\n//# sourceURL=" + (url || 'paperscript');
|
||||||
}
|
}
|
||||||
/*#*/ } else { // !__options.environment == 'browser'
|
/*#*/ } else { // __options.environment != 'browser'
|
||||||
// Now do the parsing magic
|
// Now do the parsing magic
|
||||||
walkAST(parse(code, { ranges: true }));
|
walkAST(parse(code, { ranges: true }));
|
||||||
/*#*/ } // !__options.environment == 'browser'
|
/*#*/ } // __options.environment != 'browser'
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -408,9 +408,9 @@ Base.exports.PaperScript = (function() {
|
||||||
} else {
|
} else {
|
||||||
func = Function(params, code);
|
func = Function(params, code);
|
||||||
}
|
}
|
||||||
/*#*/ } else { // !__options.environment == 'browser'
|
/*#*/ } else { // __options.environment != 'browser'
|
||||||
func = Function(params, code);
|
func = Function(params, code);
|
||||||
/*#*/ } // !__options.environment == 'browser'
|
/*#*/ } // __options.environment != 'browser'
|
||||||
var res = func.apply(scope, args) || {};
|
var res = func.apply(scope, args) || {};
|
||||||
// Now install the 'global' tool and view handlers, and we're done!
|
// Now install the 'global' tool and view handlers, and we're done!
|
||||||
Base.each(toolHandlers, function(key) {
|
Base.each(toolHandlers, function(key) {
|
||||||
|
@ -496,7 +496,7 @@ Base.exports.PaperScript = (function() {
|
||||||
parse: parse
|
parse: parse
|
||||||
};
|
};
|
||||||
|
|
||||||
/*#*/ } else { // !__options.environment == 'browser'
|
/*#*/ } else { // __options.environment != 'browser'
|
||||||
/*#*/ if (__options.environment == 'node') {
|
/*#*/ if (__options.environment == 'node') {
|
||||||
|
|
||||||
// Register the .pjs extension for automatic compilation as PaperScript
|
// Register the .pjs extension for automatic compilation as PaperScript
|
||||||
|
@ -529,7 +529,7 @@ Base.exports.PaperScript = (function() {
|
||||||
parse: parse
|
parse: parse
|
||||||
};
|
};
|
||||||
|
|
||||||
/*#*/ } // !__options.environment == 'browser'
|
/*#*/ } // __options.environment != 'browser'
|
||||||
// Pass on `this` as the binding object, so we can reference Acorn both in
|
// Pass on `this` as the binding object, so we can reference Acorn both in
|
||||||
// development and in the built library.
|
// development and in the built library.
|
||||||
}).call(this);
|
}).call(this);
|
||||||
|
|
Loading…
Reference in a new issue