diff --git a/src/Loader.js b/src/Loader.js index 6fa4858..ef25ec1 100644 --- a/src/Loader.js +++ b/src/Loader.js @@ -1,6 +1,6 @@ var async = require('async'), Resource = require('./Resource'), - EventEmitter = require('eventemitter3').EventEmitter; + EventEmitter = require('eventemitter3'); /** * Manages the state and loading of multiple resources to load. diff --git a/src/Resource.js b/src/Resource.js index 3c481cc..5a8e3e7 100644 --- a/src/Resource.js +++ b/src/Resource.js @@ -1,4 +1,4 @@ -var EventEmitter = require('eventemitter3').EventEmitter, +var EventEmitter = require('eventemitter3'), // tests is CORS is supported in XHR, if not we need to use XDR useXdr = !!(window.XDomainRequest && !('withCredentials' in (new XMLHttpRequest())));