mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
parent
94e07e77f0
commit
b99d54f8c3
2 changed files with 6 additions and 0 deletions
|
@ -15,6 +15,8 @@
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// Locally override define, so acorn.js does not export itself
|
||||||
|
var define = null;
|
||||||
/*#*/ if (options.parser == 'acorn') {
|
/*#*/ if (options.parser == 'acorn') {
|
||||||
/*#*/ include('../../lib/acorn-min.js');
|
/*#*/ include('../../lib/acorn-min.js');
|
||||||
/*#*/ } else if (options.parser == 'esprima') {
|
/*#*/ } else if (options.parser == 'esprima') {
|
||||||
|
|
|
@ -130,3 +130,7 @@ var paper = new function() {
|
||||||
/*#*/ include('export.js');
|
/*#*/ include('export.js');
|
||||||
return paper;
|
return paper;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Support AMD (e.g. require.js)
|
||||||
|
if (define && define.amd)
|
||||||
|
define(paper);
|
||||||
|
|
Loading…
Reference in a new issue