Browse Source

Merge pull request #308 from IngloriousCoderz/master

Fix global behaviour in UMD module
pull/205/merge
Matt Holt 9 years ago
parent
commit
8c758484a1
  1. 3
      papaparse.js
  2. 2
      papaparse.min.js

3
papaparse.js

@ -20,12 +20,13 @@
else else
{ {
// Browser globals (root is window) // Browser globals (root is window)
root.returnExports = factory(); root.Papa = factory();
} }
}(this, function() }(this, function()
{ {
'use strict'; 'use strict';
var global = Function('return this')();
var IS_WORKER = !global.document && !!global.postMessage, var IS_WORKER = !global.document && !!global.postMessage,
IS_PAPA_WORKER = IS_WORKER && /(\?|&)papaworker(=|&|$)/.test(global.location.search), IS_PAPA_WORKER = IS_WORKER && /(\?|&)papaworker(=|&|$)/.test(global.location.search),
LOADED_SYNC = false, AUTO_SCRIPT_PATH; LOADED_SYNC = false, AUTO_SCRIPT_PATH;

2
papaparse.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save