Browse Source

Merge pull request #149 from mnibecker/require-friendly

Making Papa require friendly.
pull/181/head
Matt Holt 10 years ago
parent
commit
bfbfedb8fc
  1. 5
      papaparse.js

5
papaparse.js

@ -1333,4 +1333,9 @@ @@ -1333,4 +1333,9 @@
{
return typeof func === 'function';
}
// if requirejs is available, return Papa
if (isFunction(define) && define.amd) {
define( function() { return global.Papa; });
}
})(this);

Loading…
Cancel
Save