(images, onLoad)
| 4033 | } |
| 4034 | |
| 4035 | function ImageLoader(images, onLoad) { |
| 4036 | return new Promise(function (resolve, reject) { |
| 4037 | loadImages(images, onLoad).then(function (loadedImages) { |
| 4038 | var r = {}; |
| 4039 | loadedImages.forEach(function (curImage) { |
| 4040 | r[curImage.name] = { |
| 4041 | img: curImage.img, |
| 4042 | src: curImage.src |
| 4043 | }; |
| 4044 | }); |
| 4045 | |
| 4046 | resolve(r); |
| 4047 | }); |
| 4048 | }); |
| 4049 | } |
| 4050 | |
| 4051 | module.exports = exports["default"]; |
| 4052 |
nothing calls this directly
no test coverage detected