Browse Source

Making Papa require friendly. Added functionality to return Papa obj is app is using require

pull/149/head
Matt Nibecker 10 years ago
parent
commit
ffa5761e50
  1. 7
      papaparse.js

7
papaparse.js

@ -1432,4 +1432,11 @@ @@ -1432,4 +1432,11 @@
{
return typeof func === 'function';
}
// if requirejs is available, return Papa
if (typeof define === "function" && define.amd) {
define('papaparse', [], function() {
return global.Papa;
});
}
})(this);

Loading…
Cancel
Save