We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeff463 commit 1fafaccCopy full SHA for 1fafacc
README.md
@@ -38,7 +38,7 @@ loadImages([
38
'path/to/the/image1.jpg',
39
'path/to/the/image2.jpg'
40
])
41
- .then(img => document.body.appendChild(img))
+ .then(imgs => imgs.forEach(i => document.body.appendChild(i)))
42
.catch(error => {
43
// there was an error loading one of images
44
})
@@ -52,7 +52,7 @@ import $ from 'bianco.query'
52
import { loadImages } from 'bianco.images-loader'
53
54
loadImages($('img', '.main-content'))
55
- .then(img => img.classList.add('loaded'))
+ .then(imgs => imgs.forEach(i => i.classList.add('loaded')))
56
57
58
0 commit comments