Merge pull request #462 from jbielick/master

add commonJS export in browser environment export
This commit is contained in:
Jürg Lehni 2014-07-25 20:04:08 +02:00
commit 3c14a5ad05

View file

@ -32,6 +32,8 @@ paper = new (PaperScope.inject(Base.exports, {
// confuse the require.js optimizer.
if (typeof define === 'function' && define.amd)
define('paper', paper);
else if (typeof module === 'object')
module.exports = paper;
/*#*/ } else if (__options.environment == 'node') {