Pentiado / angular-lazy-img

Lightweight lazy load images plugin. Only 1kb after gziping. Pure JavaScript, only Angular as dependency.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Result classes are not cleared

adalbertpl opened this issue · comments

When I change lazy-image value to another value, image is loaded afresh which is intuitive.
But classes added with errorClass and successClass options are not cleared.
So at the and I could have element with both classes.
I don't know whether it is desired behaviour or a bug.