queue.js 628 B

12345678910111213141516171819202122
  1. // Uses Node, AMD or browser globals to create a module.
  2. (function (root, factory) {
  3. if (typeof define === 'function' && define.amd) {
  4. // AMD. Register as an anonymous module.
  5. define([], factory);
  6. } else if (typeof exports === 'object') {
  7. // Node. Does not work with strict CommonJS, but
  8. // only CommonJS-like environments that support module.exports,
  9. // like Node.
  10. module.exports = factory();
  11. } else {
  12. // Browser globals (root is window)
  13. root.returnExports = factory();
  14. }
  15. }(this, function () {
  16. function Queue() {
  17. }
  18. return Queue;
  19. }));