Skip to content

Commit

Permalink
v. 1.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dinbror authored and dinbror committed Oct 14, 2016
1 parent e238f24 commit 7bbb67a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ Exchange `latest` with the specific version number if you want to lock it in.
* Animate the container that contains the image you lazy load. You can do that today by adding/removing a class in the success callback.

## CHANGELOG
### v 1.7.1 (2016/10/14) ###
* Bugfix: In safari the picture element always loaded the default/fallback image [#92](https://github.com/dinbror/blazy/issues/92).

### v 1.7.0 (2016/10/10) ###
* Bugfix: When lazyloading picture elements it also loaded the fallback/regular image [#92](https://github.com/dinbror/blazy/issues/92) and [108](https://github.com/dinbror/blazy/pull/108). Thanks [@idoshamun](https://github.com/idoshamun)
* Refactored loadElement function to avoid redundancy.
Expand Down
6 changes: 3 additions & 3 deletions blazy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
hey, [be]Lazy.js - v1.7.0 - 2016.10.10
hey, [be]Lazy.js - v1.7.1 - 2016.10.14
A fast, small and dependency free lazy load script (https://github.com/dinbror/blazy)
(c) Bjoern Klinggaard - @bklinggaard - http://dinbror.dk/blazy
*/
Expand Down Expand Up @@ -251,13 +251,13 @@
}

function setSrc(ele, src) {
ele[_attrSrc] = src;
ele.setAttribute(_attrSrc, src);
}

function handleSource(ele, attr, dataAttr) {
var dataSrc = ele.getAttribute(dataAttr);
if (dataSrc) {
ele[attr] = dataSrc;
ele.setAttribute(attr, dataSrc);
ele.removeAttribute(dataAttr);
}
}
Expand Down
4 changes: 2 additions & 2 deletions blazy.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bLazy",
"main": "blazy.js",
"version": "1.7.0",
"version": "1.7.1",
"description": "A fast lightweight pure JavaScript script for lazy loading and multi-serving images, iframes, videos and more.",
"homepage": "https://github.com/dinbror/blazy",
"keywords": [
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blazy",
"version": "1.7.0",
"version": "1.7.1",
"description": "A fast lightweight pure JavaScript script for lazy loading and multi-serving images, iframes, videos and more.",
"main": "blazy.js",
"keywords": [
Expand All @@ -12,6 +12,7 @@
"lazyloading",
"image",
"images",
"picture",
"iframe",
"video",
"unity",
Expand Down

0 comments on commit 7bbb67a

Please sign in to comment.