Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

progress-event.js 596B

12345678910111213141516171819202122
  1. "use strict";
  2. var Event = require("./event");
  3. function ProgressEvent(type, progressEventRaw, target) {
  4. this.initEvent(type, false, false, target);
  5. this.loaded =
  6. typeof progressEventRaw.loaded === "number"
  7. ? progressEventRaw.loaded
  8. : null;
  9. this.total =
  10. typeof progressEventRaw.total === "number"
  11. ? progressEventRaw.total
  12. : null;
  13. this.lengthComputable = Boolean(progressEventRaw.total);
  14. }
  15. ProgressEvent.prototype = new Event();
  16. ProgressEvent.prototype.constructor = ProgressEvent;
  17. module.exports = ProgressEvent;