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

Function makeLoader

libraries/p5.dom.js:803–810  ·  view source on GitHub ↗
(theFile)

Source from the content-addressed store, hash-verified

801 var f = files[i];
802 var reader = new FileReader();
803 function makeLoader(theFile) {
804 // Making a p5.File object
805 var p5file = new p5.File(theFile);
806 return function(e) {
807 p5file.data = e.target.result;
808 callback(p5file);
809 };
810 };
811 reader.onload = makeLoader(f);
812
813 // Text or data?

Callers 1

handleFileSelectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected