MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / makeLoader

Function makeLoader

libraries/p5.js:14138–14145  ·  view source on GitHub ↗
(theFile)

Source from the content-addressed store, hash-verified

14136p5.Element.prototype.drop = function (callback, fxn) {
14137 // Make a file loader callback and trigger user's callback
14138 function makeLoader(theFile) {
14139 // Making a p5.File object
14140 var p5file = new p5.File(theFile);
14141 return function(e) {
14142 p5file.data = e.target.result;
14143 callback(p5file);
14144 };
14145 }
14146
14147 // Is the file stuff supported?
14148 if (window.File && window.FileReader && window.FileList && window.Blob) {

Callers 1

p5.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected