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