bbc / Imager.js

Responsive images while we wait for srcset to finish cooking
Apache License 2.0
3.84k stars 224 forks source link

Add data-class attr to be used to add more classes to img #79

Closed steadweb closed 10 years ago

steadweb commented 10 years ago

Needed a way to add extra classes to the generated img element on a per image basis.

thom4parisot commented 10 years ago

That's a good addition thanks :-)

steadweb commented 10 years ago

All credit to @mitchward

steadweb commented 10 years ago

@mitchward has cached the class name based on @Integralist last comment.

thom4parisot commented 10 years ago

It's merged with a cherry-pick into master, adding tests (2f2242abe10e0dc30052bcdb35382916b77f4589) and documented (b5e6d82e8cdcc349f44d5ca05fefa4c0935f6f52).

Will be shipped in 0.3 :-)