Browse Source

Use isFunction method. Use anonymous define

pull/149/head
Matt Nibecker 10 years ago
parent
commit
40d5be9eb3
  1. 6
      papaparse.js

6
papaparse.js

@ -1434,9 +1434,7 @@ @@ -1434,9 +1434,7 @@
}
// if requirejs is available, return Papa
if (typeof define === "function" && define.amd) {
define('papaparse', [], function() {
return global.Papa;
});
if (isFunction(define) && define.amd) {
define( function() { return global.Papa; });
}
})(this);

Loading…
Cancel
Save